aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/softban.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Moderation/softban.js')
-rw-r--r--commands/Moderation/softban.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/Moderation/softban.js b/commands/Moderation/softban.js
index dd5b4a9..7c5119b 100644
--- a/commands/Moderation/softban.js
+++ b/commands/Moderation/softban.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();
@@ -48,6 +47,12 @@ 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,