Update ban.js
This commit is contained in:
parent
4edb15af8f
commit
d34c9f4f4f
1 changed files with 16 additions and 14 deletions
|
@ -1,8 +1,10 @@
|
|||
exports.run = async (client, message, args, level) => {
|
||||
const user = message.mentions.users.first() || client.users.get("username", args[0]).id;
|
||||
parseUser(message, user);
|
||||
|
||||
const modlog = client.channels.find('name', config.modLogChannel);
|
||||
const caseNum = await caseNumber(client, modlog);
|
||||
|
||||
if (!modlog) return message.reply('I cannot find a valid modlog channel.');
|
||||
if (message.mentions.users.size < 1) return message.reply('You must mention someone to ban them.').catch(console.error);
|
||||
// message.guild.ban(user, 2);
|
||||
|
|
Loading…
Reference in a new issue