diff options
| author | 8cy <[email protected]> | 2020-04-27 08:00:29 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-27 08:00:29 -0700 |
| commit | 0d35c0116c38d1f8642e4c8d8f36509f7500bb05 (patch) | |
| tree | 24532f9d04bd1465b5b4d21bde18d86812646f45 /src/commands/moderation/ban.ts | |
| parent | add welcome command, v7.8.0 (diff) | |
| download | dep-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/ban.ts')
| -rw-r--r-- | src/commands/moderation/ban.ts | 11 |
1 files changed, 9 insertions, 2 deletions
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 |