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/removerole.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/commands/moderation/removerole.ts') diff --git a/src/commands/moderation/removerole.ts b/src/commands/moderation/removerole.ts index a4edc92..d796cb9 100644 --- a/src/commands/moderation/removerole.ts +++ b/src/commands/moderation/removerole.ts @@ -20,6 +20,11 @@ module.exports = class RemoveRoleModeration extends Command { type: 'string' } ], + throttling: { + usages: 5, + duration: 30 + }, + guildOnly: true, userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], examples: [ @@ -37,7 +42,7 @@ module.exports = class RemoveRoleModeration extends Command { if (role) { console.log(role) member?.roles.remove(role) - msg.reply(`The role **${role}** has been remove from **${member}**.`) + msg.reply(`The role **${role}** has been remove from **${member}**!`) } else { console.log(role) msg.reply('Role is either non-existant or you might\'ve mispelled it.') -- cgit v1.2.3