Yeah, the code loop is working fine, even with the increased delay it still throws a join timeout every now and again. My only other assumption is the library reconnecting or something in the background which is adding unwanted counts ontop of my loop. Hence why i already requested a verification of the bot to increase the limits, when this is specially a bothersome on startup(which sometimes hits rate limit and makes the bot be ‘off’ for 30 minutes).
For reference, the loop is waiting 1500 ms per iteration,and ontop of that,on the 19th attempt it waits 11000 ms. That still encountering issues
if you are familiar with Typescript/Javascript, this is the gist of the code im running:
let channels = ['insert 100+ channel names here'];
const delay = (ms: number) => new Promise((res) => setTimeout(res, ms));
let count = 0;
for(let c of channels) {
if(count >= 19) {await delay(11000);count = 0;}
count++
await chat.join(c);
await delay(1500)
}