From 3f039016af127c31cffe0733c3b4b31566a6d146 Mon Sep 17 00:00:00 2001 From: Souji Date: Fri, 7 Feb 2020 18:27:05 +0100 Subject: [PATCH] fix(GuildMember): manageable - let owner override (#3765) * if the bot is owner of the guild the target is managebale * even though both roles are on the same position --- src/structures/GuildMember.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index dcd5a93dd..8a8b8bb6a 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -216,6 +216,7 @@ class GuildMember extends Base { get manageable() { if (this.user.id === this.guild.ownerID) return false; if (this.user.id === this.client.user.id) return false; + if (this.client.user.id === this.guild.ownerID) return true; if (!this.guild.me) throw new Error('GUILD_UNCACHED_ME'); return this.guild.me.roles.highest.comparePositionTo(this.roles.highest) > 0; }