mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
fix(GuildMember): manageable - let owner override (#3766)
This backports #3765
This commit is contained in:
parent
c955fd00c7
commit
364914fd35
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue