Bug Fix
This commit is contained in:
1 parent
83a7f7567a
commit
929fd0cbaa
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user