diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/moderation/ban.ts | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/moderation/ban.ts')
| -rw-r--r-- | src/commands/moderation/ban.ts | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts deleted file mode 100644 index 6bf6168..0000000 --- a/src/commands/moderation/ban.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -//@ts-ignore this has no types -import emoji from 'emoji-random' - -module.exports = class BanModeration extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'ban', - aliases: ['banuser', 'ban-user'], - group: 'moderation', - memberName: 'ban', - description: 'Ban someone.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], - examples: [ - 'uwu!ban @sin#1337', - 'uwu!banuser @sin#1337', - 'uwu!ban-user @sin#1337' - ], - throttling: { - usages: 5, - duration: 30 - }, - guildOnly: true - }); - } - //@ts-ignore this is not promsise based - run(msg: CommandoMessage) { - let userID = msg.mentions.members?.first() - if (!userID?.id) { - return msg.reply('No member was mentioned. ' + emoji.random()) - } else if (userID?.id == msg.author.id) { - return msg.reply('You cannot ban yourself.' + emoji.random()) - } else if (userID?.id == this.client.user?.id) { - return msg.reply('Not funny. ' + emoji.random()) - } else if (!msg.guild.member(userID.id)) { - return msg.reply('Member does not exist in server.') - } else { - msg.guild.members.ban(userID.id) - return msg.say(`**${userID}** has been banned!`).then(m => { - //@ts-ignore yes this exists - m.react('🇫'); - }) - } - } -};
\ No newline at end of file |