mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
Fix <Role>.editable (#1547)
This commit is contained in:
parent
68c25fef28
commit
7896081966
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ class Role {
|
|||
get editable() {
|
||||
if (this.managed) return false;
|
||||
const clientMember = this.guild.member(this.client.user);
|
||||
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES_OR_PERMISSIONS)) return false;
|
||||
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return false;
|
||||
return clientMember.highestRole.comparePositionTo(this) > 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue