diff --git a/backend/src/plugins/Utility/commands/CleanCmd.ts b/backend/src/plugins/Utility/commands/CleanCmd.ts index 0d42bf8c..185f2036 100644 --- a/backend/src/plugins/Utility/commands/CleanCmd.ts +++ b/backend/src/plugins/Utility/commands/CleanCmd.ts @@ -117,7 +117,7 @@ export async function cleanCmd(pluginData: GuildPluginData, a while (messagesToClean.length < args.count) { const potentialMessages = await targetChannel.messages.fetch({ before: beforeId, - limit: args.count, + limit: Math.min(args.count, 100), }); if (potentialMessages.size === 0) break;