mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-23 09:51:58 -05:00
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
This commit is contained in:
commit
3be4b7dd68
1 changed files with 20 additions and 0 deletions
20
commands/kick.js
Normal file
20
commands/kick.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
exports.run = (bot, msg, args) => {
|
||||
if (!msg.member.hasPermission('KICK_MEMBERS')) return msg.reply('You don\'t have permssion to kick members');
|
||||
if (!msg.guild.member(bot.user).hasPermission('KICK_MEMBERS')) return msg.reply('I don\'t have permssion to kick members');
|
||||
const member = msg.mentions.members.first();
|
||||
member.kick(args.join(' ').slice(3 + member.user.id.length)).then(() => {
|
||||
msg.channel.send(`Alright, I kicked **${member.user.tag}** for the reason **${args.join(' ').slice(3 + member.user.id.length)}**`);
|
||||
});
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
aliases: [],
|
||||
guildOnly: true,
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
name: 'kick',
|
||||
description: 'Kick a user out of the server',
|
||||
usage: '@<User> <...reason>',
|
||||
category: 'Moderation',
|
||||
};
|
Loading…
Add table
Reference in a new issue