Remove Guild#member (#4890)

This commit is contained in:
anandre
2020-11-22 12:21:01 -06:00
committed by GitHub
parent 4b555fdf4c
commit 8c8883ef26
8 changed files with 8 additions and 20 deletions

View File

@@ -127,7 +127,7 @@ class Role extends Base {
*/
get editable() {
if (this.managed) return false;
const clientMember = this.guild.member(this.client.user);
const clientMember = this.guild.members.resolve(this.client.user);
if (!clientMember.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return false;
return clientMember.roles.highest.comparePositionTo(this) > 0;
}