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,23 +490,22 @@ class GuildMemberManager extends CachedManager {
x += 200;
}
}
Promise.all(
list.map(l => {
this.guild.shard.send({
op: type,
d: {
guild_id: this.guild.id,
typing: true,
threads: false,
activities: true,
channels: {
[channel.id]: l,
},
for (const l of list) {
this.guild.shard.send({
op: type,
d: {
guild_id: this.guild.id,
typing: true,
threads: false,
activities: true,
channels: {
[channel.id]: l,
},
});
return true;
}),
);
thread_member_lists: [],
members: [],
},
});
}
}
const fetchedMembers = new Collection();
let i = 0;