possible fix for kick cmd
parent
d7d6247c4c
commit
ba3b71d0b1
|
@ -26,7 +26,7 @@ export default class Kick extends Command {
|
||||||
if (user && !this.client.util.moderation.checkPermissions(user, message.member)) return this.error(message.channel, 'Permission Denied.');
|
if (user && !this.client.util.moderation.checkPermissions(user, message.member)) return this.error(message.channel, 'Permission Denied.');
|
||||||
message.delete();
|
message.delete();
|
||||||
|
|
||||||
const reason: string = args[1];
|
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.id} has been kicked.`);
|
||||||
|
|
Loading…
Reference in New Issue