diff options
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 |