Update GuildMember.js
Fix deprecation warning when using .moderatable
This commit is contained in:
parent
566fb28ee8
commit
d63b721090
@ -380,7 +380,7 @@ class GuildMember extends Base {
|
|||||||
return (
|
return (
|
||||||
!this.permissions.has(Permissions.FLAGS.ADMINISTRATOR) &&
|
!this.permissions.has(Permissions.FLAGS.ADMINISTRATOR) &&
|
||||||
this.manageable &&
|
this.manageable &&
|
||||||
(this.guild.me?.permissions.has(Permissions.FLAGS.MODERATE_MEMBERS) ?? false)
|
(this.guild.members.me?.permissions.has(Permissions.FLAGS.MODERATE_MEMBERS) ?? false)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user