Update ban.js

This commit is contained in:
carol 2020-02-04 11:13:22 -05:00 committed by GitHub
parent b5453e9563
commit 4edb15af8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
exports.run = async (client, message, args, level) => {
const user = message.mentions.users.first();
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);