fix kick cmd output

pull/29/head
Matthew 2020-11-29 19:33:26 -05:00
parent 687e767565
commit 61260d690c
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

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