aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/ban.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Moderation/ban.js')
-rw-r--r--commands/Moderation/ban.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js
index b9ffa4d..593d9e7 100644
--- a/commands/Moderation/ban.js
+++ b/commands/Moderation/ban.js
@@ -8,7 +8,6 @@
* *************************************/
exports.run = async (bot, msg, args) => {
- if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to ban members.');
if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permission to ban members.');
const member = msg.mentions.members.first();
@@ -42,6 +41,11 @@ exports.run = async (bot, msg, args) => {
}
};
+exports.checkPermission = (bot, member) => {
+ if (!member.hasPermission('BAN_MEMBERS')) return 'You don\'t have permission to ban members.';
+ return true;
+}
+
exports.conf = {
aliases: [],
guildOnly: true,