From 6b7bd463157b03e99bc01ce4bf0104bd05df48e2 Mon Sep 17 00:00:00 2001 From: eYuM-coder Date: Sun, 13 Oct 2024 11:29:35 -0600 Subject: [PATCH] bruh --- src/commands/moderation/clear.js | 2 +- src/slashCommands/moderation/clear.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;