fix for ban cmd issue

merge-requests/12/head
Matthew 2020-05-06 03:38:47 -04:00 committed by Bsian
parent fee475b409
commit ca003b5ca4
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 0 deletions

View File

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