Update GuildMember.js

Fix deprecation warning when using .moderatable
This commit is contained in:
Hristo 2023-06-28 02:22:12 +03:00 committed by GitHub
parent 566fb28ee8
commit d63b721090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
); );
} }