aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/kick.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Moderation/kick.js')
-rw-r--r--commands/Moderation/kick.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/Moderation/kick.js b/commands/Moderation/kick.js
index 174e867..3ee88ea 100644
--- a/commands/Moderation/kick.js
+++ b/commands/Moderation/kick.js
@@ -8,7 +8,6 @@
* *************************************/
exports.run = async (bot, msg, args) => {
- if (!msg.member.hasPermission('KICK_MEMBERS')) return msg.reply('You don\'t have permission to kick members.');
if (!msg.guild.member(bot.user).hasPermission('KICK_MEMBERS')) return msg.reply('I don\'t have permission to kick members.');
const member = msg.mentions.members.first();
@@ -20,6 +19,11 @@ exports.run = async (bot, msg, args) => {
msg.channel.send(`Alright, I kicked **${member.user.tag}**${(reason ? ` for the reason **${reason}**.` : '.')}`);
};
+exports.checkPermission = (bot, member) => {
+ if (!member.hasPermission('KICK_MEMBERS')) return 'You don\'t have permission to kick members.';
+ return true;
+}
+
exports.conf = {
aliases: [],
guildOnly: true,