parent
d454853679
commit
110c8590a7
@ -142,8 +142,9 @@ class PermissionOverwriteManager extends CachedManager {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
edit(userOrRole, options, overwriteOptions) {
|
edit(userOrRole, options, overwriteOptions) {
|
||||||
userOrRole = this.channel.guild.roles.resolveId(userOrRole) ?? this.client.users.resolveId(userOrRole);
|
const existing = this.cache.get(
|
||||||
const existing = this.cache.get(userOrRole);
|
this.channel.guild.roles.resolveId(userOrRole) ?? this.client.users.resolveId(userOrRole),
|
||||||
|
);
|
||||||
return this.upsert(userOrRole, options, overwriteOptions, existing);
|
return this.upsert(userOrRole, options, overwriteOptions, existing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user