summaryrefslogtreecommitdiff
path: root/src/commands/moderation/removerole.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-27 08:00:29 -0700
committer8cy <[email protected]>2020-04-27 08:00:29 -0700
commit0d35c0116c38d1f8642e4c8d8f36509f7500bb05 (patch)
tree24532f9d04bd1465b5b4d21bde18d86812646f45 /src/commands/moderation/removerole.ts
parentadd welcome command, v7.8.0 (diff)
downloaddep-core-0d35c0116c38d1f8642e4c8d8f36509f7500bb05.tar.xz
dep-core-0d35c0116c38d1f8642e4c8d8f36509f7500bb05.zip
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)
Diffstat (limited to 'src/commands/moderation/removerole.ts')
-rw-r--r--src/commands/moderation/removerole.ts7
1 files changed, 6 insertions, 1 deletions
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.')