additional checks on guild member chunks

This commit is contained in:
MathMan05 2024-09-03 11:02:56 -05:00
parent e66b6c0883
commit e3086efb82
2 changed files with 17 additions and 4 deletions

View file

@ -1440,7 +1440,10 @@ class Localuser{
for(const thing of data){
if(value.has(thing.id)){
const func=value.get(thing.id);
if(!func)continue;
if(!func){
value.delete(thing.id);
continue;
};
func(thing);
value.delete(thing.id);
}
@ -1448,9 +1451,13 @@ class Localuser{
for(const thing of prom[1]){
if(value.has(thing)){
const func=value.get(thing);
if(!func)continue;
if(!func){
value.delete(thing);
continue;
}
func(undefined);
value.delete(thing);
console.log("failed");
}
}
this.fetchingmembers.delete(guildid);