From 929fd0cbaa1649cd059f715471017d699084f815 Mon Sep 17 00:00:00 2001 From: SiskelDev Date: Thu, 26 Jun 2025 20:06:32 +0200 Subject: [PATCH] Bug Fix --- bot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 97829b6..779cdff 100644 --- a/bot.js +++ b/bot.js @@ -83,12 +83,14 @@ client.on(Events.MessageCreate, async (message) => { //currentCount++; //message.channel.setTopic(currentCount + " Pings | Schreibt \"Ping\" & der Bot schreibt \"Pong\""); + const channel = message.channel; + let messageCount = 0; let lastMessageId; while (true) { // Fetch messages in batches of 100 - const options = { limit: 100 }; + const options = { limit: 1000 }; if (lastMessageId) { options.before = lastMessageId; }