From 4edb15af8fe214bf2d8d6c61892d032d54525323 Mon Sep 17 00:00:00 2001 From: carol <34490428+rhearmas@users.noreply.github.com> Date: Tue, 4 Feb 2020 11:13:22 -0500 Subject: [PATCH] Update ban.js --- commands/Moderation/ban.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);