diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js index 8cf348d..1710446 100644 --- a/commands/Moderation/ban.js +++ b/commands/Moderation/ban.js @@ -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);