fix for ban cmd issue

merge-requests/11/merge
Matthew 2020-05-06 03:38:47 -04:00
parent 5be0c631bd
commit 884a81d4b8
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ export default class Ban extends Command {
} catch { } catch {
return this.error(message.channel, 'Cannot find user.'); return this.error(message.channel, 'Cannot find user.');
} }
} else {
user = member.user;
} }
try { try {
await this.client.guilds.get(this.client.config.guildID).getBan(args[0]); await this.client.guilds.get(this.client.config.guildID).getBan(args[0]);