diff --git a/commands/other/prune.js b/commands/other/prune.js index 82c0a645..e4ac27fb 100644 --- a/commands/other/prune.js +++ b/commands/other/prune.js @@ -19,18 +19,19 @@ module.exports = class PruneCommand extends Command { { key: 'count', label: 'amount of messages', - prompt: 'How many messages do you want to delete? Limit of up to 99.', + prompt: 'How many messages do you want to delete? Limit of up to 100.', type: 'integer', min: 1, - max: 99 + max: 100 } ] }); } async run(msg, { count }) { + count += 1; try { - const messages = await msg.channel.messages.fetch({ limit: count + 1 }); + const messages = await msg.channel.messages.fetch({ limit: count > 100 ? 100 : count }); await msg.channel.bulkDelete(messages, true); return null; } catch { diff --git a/package.json b/package.json index 5fb80835..e575e747 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.20.3", + "version": "112.20.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {