mirror of
https://github.com/danbulant/discord.js
synced 2026-07-10 13:41:42 +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() {
|
get editable() {
|
||||||
if (this.managed) return false;
|
if (this.managed) return false;
|
||||||
const clientMember = this.guild.member(this.client.user);
|
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;
|
return clientMember.highestRole.comparePositionTo(this) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue