fix kick cmd output
parent
687e767565
commit
61260d690c
|
@ -29,7 +29,7 @@ export default class Kick extends Command {
|
||||||
const reason: string = args.slice(1).join(' ');
|
const reason: string = args.slice(1).join(' ');
|
||||||
if (reason.length > 512) return this.error(message.channel, 'Kick reasons cannot be longer than 512 characters.');
|
if (reason.length > 512) return this.error(message.channel, 'Kick reasons cannot be longer than 512 characters.');
|
||||||
await this.client.util.moderation.kick(user, message.member, reason);
|
await this.client.util.moderation.kick(user, message.member, reason);
|
||||||
return this.success(message.channel, `${user.username}#${user.id} has been kicked.`);
|
return this.success(message.channel, `${user.username}#${user.discriminator} has been kicked.`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return this.client.util.handleError(err, message, this, false);
|
return this.client.util.handleError(err, message, this, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue