mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix(GuildMember): manageable - let owner override (#3766)
This backports #3765
This commit is contained in:
@@ -292,6 +292,7 @@ class GuildMember {
|
|||||||
get manageable() {
|
get manageable() {
|
||||||
if (this.user.id === this.guild.ownerID) return false;
|
if (this.user.id === this.guild.ownerID) return false;
|
||||||
if (this.user.id === this.client.user.id) 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;
|
return this.guild.me.highestRole.comparePositionTo(this.highestRole) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user