From 0d35c0116c38d1f8642e4c8d8f36509f7500bb05 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Mon, 27 Apr 2020 08:00:29 -0700 Subject: A New World, v8.0.0 - change some formatting - add throttling to all commands - change timout in welcome and clear - add another edge case to welcome and darling - use new mongo.connect params for stability - move some commands around - remove some tsingnores for idk in total, epic update 8) --- src/commands/moderation/kick.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/kick.ts') diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts index 24b669d..5f6a789 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -14,7 +14,12 @@ module.exports = class KickModeration extends Command { 'uwu!kick @sin#1337', 'uwu!kickuser @sin#1337', 'uwu!kick-user @sin#1337' - ] + ], + throttling: { + usages: 5, + duration: 30 + }, + guildOnly: true }); } run(msg: CommandoMessage) { @@ -23,7 +28,9 @@ module.exports = class KickModeration extends Command { msg.reply('Member does not exist in server.') } else { msg.guild.members.prune(userID) - msg.say(`User **${userID}** has been kicked!`) + msg.say(`User **${userID}** has been kicked!`).then(m => { + m.react('🇫'); + }) } } }; \ No newline at end of file -- cgit v1.2.3