fix(GuildMember): manageable - let owner override (#3766)

This backports #3765
This commit is contained in:
Souji
2020-02-07 18:27:56 +01:00
committed by GitHub
parent c955fd00c7
commit 364914fd35

View File

@@ -292,6 +292,7 @@ class GuildMember {
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;
return this.guild.me.highestRole.comparePositionTo(this.highestRole) > 0;
}