diff options
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/moderation/clear.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/moderation/clear.ts b/src/commands/moderation/clear.ts index c306231..c162ac4 100644 --- a/src/commands/moderation/clear.ts +++ b/src/commands/moderation/clear.ts @@ -35,6 +35,10 @@ module.exports = class ClearModeration extends Command { } //@ts-ignore this is not promise based async run(msg: CommandoMessage, { deleteAmount }: any) { + if (deleteAmount >= 100) { + deleteAmount == 100; + msg.author.send(`Due to Discord API limitations, your request has been rounded down to **100**. ${emoji.random()}`) + } if (msg.member.hasPermission('MANAGE_MESSAGES')) { if (!deleteAmount) { return msg.reply('You haven\'t specified an amount of messages which should be deleted. ' + emoji.random()).then(deleteNotificationMessage => { |