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/ban.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/commands/moderation/ban.ts') diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 45f5298..5e9be5e 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -10,7 +10,12 @@ module.exports = class BanModeration extends Command { description: 'Ban someone.', userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], - examples: ['uwu!ban @sin#1337'] + examples: ['uwu!ban @sin#1337'], + guildOnly: true, + throttling: { + usages: 5, + duration: 30 + }, }); } run(msg: CommandoMessage) { @@ -19,7 +24,9 @@ module.exports = class BanModeration extends Command { msg.reply('Member does not exist in server.') } else { msg.guild.members.ban(userID) - msg.say(`User **${userID}** has been banned!`) + msg.say(`User **${userID}** has been banned!`).then(m => { + m.react('🇫'); + }) } } }; \ No newline at end of file -- cgit v1.2.3