chunk the member requests more

This commit is contained in:
MathMan05 2024-08-10 16:31:18 -05:00
parent a1b7278397
commit 0571c0da71
2 changed files with 8 additions and 0 deletions

View file

@ -1112,6 +1112,10 @@ class Localuser{
}
}
async getmembers(){
let res:Function
const promise=new Promise(r=>res=r);
setTimeout(res,10);
await promise;//allow for more to be sent at once :P
if(this.ws){
this.waitingmembers.forEach(async (value,guildid)=>{
const keys=value.keys();