refactor(GuildMemberManager): Fetch members
This commit is contained in:
parent
0ca1bf5397
commit
9e4c0a506b
@ -490,8 +490,7 @@ class GuildMemberManager extends CachedManager {
|
|||||||
x += 200;
|
x += 200;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Promise.all(
|
for (const l of list) {
|
||||||
list.map(l => {
|
|
||||||
this.guild.shard.send({
|
this.guild.shard.send({
|
||||||
op: type,
|
op: type,
|
||||||
d: {
|
d: {
|
||||||
@ -502,11 +501,11 @@ class GuildMemberManager extends CachedManager {
|
|||||||
channels: {
|
channels: {
|
||||||
[channel.id]: l,
|
[channel.id]: l,
|
||||||
},
|
},
|
||||||
|
thread_member_lists: [],
|
||||||
|
members: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return true;
|
}
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
const fetchedMembers = new Collection();
|
const fetchedMembers = new Collection();
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user