From d63b721090164eda37cea6a38da9a4dc5d01a75d Mon Sep 17 00:00:00 2001 From: Hristo <94366827+IcAkA969@users.noreply.github.com> Date: Wed, 28 Jun 2023 02:22:12 +0300 Subject: [PATCH] Update GuildMember.js Fix deprecation warning when using .moderatable --- src/structures/GuildMember.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index ab2cc34..6756362 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -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) ); }