From 884a81d4b886964f441ee91e5898bf5a83865eff Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 6 May 2020 03:38:47 -0400 Subject: [PATCH] fix for ban cmd issue --- src/commands/ban.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/ban.ts b/src/commands/ban.ts index eee1893..b18a0ea 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -24,6 +24,8 @@ export default class Ban extends Command { } catch { return this.error(message.channel, 'Cannot find user.'); } + } else { + user = member.user; } try { await this.client.guilds.get(this.client.config.guildID).getBan(args[0]);