refactor(GuildMemberManager): Fetch members

This commit is contained in:
Cinnamon 2022-06-25 10:10:17 +07:00
parent 0ca1bf5397
commit 9e4c0a506b

View File

@ -490,8 +490,7 @@ class GuildMemberManager extends CachedManager {
x += 200;
}
}
Promise.all(
list.map(l => {
for (const l of list) {
this.guild.shard.send({
op: type,
d: {
@ -502,11 +501,11 @@ class GuildMemberManager extends CachedManager {
channels: {
[channel.id]: l,
},
thread_member_lists: [],
members: [],
},
});
return true;
}),
);
}
}
const fetchedMembers = new Collection();
let i = 0;