diff --git a/src/commands/moderation/clear.js b/src/commands/moderation/clear.js index 78a517b..211799b 100644 --- a/src/commands/moderation/clear.js +++ b/src/commands/moderation/clear.js @@ -67,7 +67,7 @@ module.exports = class extends Command { let totalDeleted = 0; while (totalDeleted < amount) { - const messagesToDelete = Math.min(101, amount - totalDeleted); + const messagesToDelete = Math.min(100, amount - totalDeleted); try { const deletedMessages = await channel.bulkDelete(messagesToDelete, true); totalDeleted += deletedMessages.size; diff --git a/src/slashCommands/moderation/clear.js b/src/slashCommands/moderation/clear.js index 9b423d7..1967392 100644 --- a/src/slashCommands/moderation/clear.js +++ b/src/slashCommands/moderation/clear.js @@ -60,7 +60,7 @@ module.exports = { let totalDeleted = 0; while (totalDeleted < amount) { - const messagesToDelete = Math.min(101, amount - totalDeleted); + const messagesToDelete = Math.min(100, amount - totalDeleted); try { const deletedMessages = await channel.bulkDelete(messagesToDelete, true); totalDeleted += deletedMessages.size;