Merge pull request #732 from IcAkA969/main

Update GuildMember.js
This commit is contained in:
Elysia 2023-06-28 08:36:34 +07:00 committed by GitHub
commit cd4656dc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,7 +380,7 @@ class GuildMember extends Base {
return (
!this.permissions.has(Permissions.FLAGS.ADMINISTRATOR) &&
this.manageable &&
(this.guild.me?.permissions.has(Permissions.FLAGS.MODERATE_MEMBERS) ?? false)
(this.guild.members.me?.permissions.has(Permissions.FLAGS.MODERATE_MEMBERS) ?? false)
);
}