fix for ban cmd issue
parent
5be0c631bd
commit
884a81d4b8
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue