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]);