diff options
| -rw-r--r-- | src/commands/moderation/clear.ts | 4 | ||||
| -rw-r--r-- | src/config.json | 2 |
2 files changed, 5 insertions, 1 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 => { diff --git a/src/config.json b/src/config.json index 9839067..60b479c 100644 --- a/src/config.json +++ b/src/config.json @@ -2,7 +2,7 @@ "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "secret-dev":"NzEyMDg4MzY5MjA2OTE5MjY5.XsMeEw.Yy0a8m2vZLDbPi7cZ8aqCalMR68", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.45", + "version":"1.10.46", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a", "mongodburi": "mongodb://sin:[email protected]:47107/heroku_4qrjvmb9", "validUsers": [ |