diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index f229e039..85031663 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -15,7 +15,7 @@ module.exports = class BanCommand extends commando.Command { }); } hasPermission(msg) { - return msg.author.hasPermission('BAN_MEMBERS'); + return msg.member.hasPermission('BAN_MEMBERS'); } async run(message) { diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 087b40e7..b79cf3ac 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -12,7 +12,7 @@ module.exports = class KickCommand extends commando.Command { }); } hasPermission(msg) { - return msg.author.hasPermission('KICK_MEMBERS'); + return msg.member.hasPermission('KICK_MEMBERS'); } async run(message) { diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 21cd8e34..037ec169 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -12,7 +12,7 @@ module.exports = class WarnCommand extends commando.Command { }); } hasPermission(msg) { - return msg.author.hasPermission('MANAGE_MESSAGES'); + return msg.member.hasPermission('MANAGE_MESSAGES'); } async run(message) {