From b4cc3dab2089af9851fda8eee3455481f7da4ebd Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 26 Apr 2017 17:41:05 +0000 Subject: [PATCH] AAAAAAH --- commands/moderation/ban.js | 2 +- commands/moderation/kick.js | 2 +- commands/moderation/lockdown.js | 2 +- commands/moderation/prune.js | 2 +- commands/moderation/unban.js | 2 +- commands/moderation/warn.js | 2 +- package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 6e28da7f..a819df7f 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -31,7 +31,7 @@ module.exports = class BanCommand extends Command { } hasPermission(msg) { - return msg.member.has('BAN_MEMBERS'); + return msg.member.permissions.has('BAN_MEMBERS'); } async run(message, args) { diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 5adda3db..18c923c6 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -28,7 +28,7 @@ module.exports = class KickCommand extends Command { } hasPermission(msg) { - return msg.member.has('KICK_MEMBERS'); + return msg.member.permissions.has('KICK_MEMBERS'); } async run(message, args) { diff --git a/commands/moderation/lockdown.js b/commands/moderation/lockdown.js index d5db543f..892123ad 100644 --- a/commands/moderation/lockdown.js +++ b/commands/moderation/lockdown.js @@ -23,7 +23,7 @@ module.exports = class LockdownCommand extends Command { } hasPermission(msg) { - return msg.member.has('ADMINISTRATOR'); + return msg.member.permissions.has('ADMINISTRATOR'); } async run(message, args) { diff --git a/commands/moderation/prune.js b/commands/moderation/prune.js index 0094a909..c78345a8 100644 --- a/commands/moderation/prune.js +++ b/commands/moderation/prune.js @@ -26,7 +26,7 @@ module.exports = class PruneCommand extends Command { } hasPermission(msg) { - return msg.member.has('MANAGE_MESSAGES'); + return msg.member.permissions.has('MANAGE_MESSAGES'); } async run(message, args) { diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 984d8f6e..ae096bc2 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -35,7 +35,7 @@ module.exports = class UnbanCommand extends Command { } hasPermission(msg) { - return msg.member.has('BAN_MEMBERS'); + return msg.member.permissions.has('BAN_MEMBERS'); } async run(message, args) { diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index a2b030dc..9846cd00 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -27,7 +27,7 @@ module.exports = class WarnCommand extends Command { } hasPermission(msg) { - return msg.member.has('MANAGE_MESSAGES'); + return msg.member.permissions.has('MANAGE_MESSAGES'); } async run(message, args) { diff --git a/package.json b/package.json index 45dcca2b..e2a607a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "15.4.3", + "version": "15.4.4", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {