refactor(GuildMemberManager): Fetch members
This commit is contained in:
parent
0ca1bf5397
commit
9e4c0a506b
@ -490,23 +490,22 @@ 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: {
|
guild_id: this.guild.id,
|
||||||
guild_id: this.guild.id,
|
typing: true,
|
||||||
typing: true,
|
threads: false,
|
||||||
threads: false,
|
activities: true,
|
||||||
activities: true,
|
channels: {
|
||||||
channels: {
|
[channel.id]: l,
|
||||||
[channel.id]: l,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
thread_member_lists: [],
|
||||||
return true;
|
members: [],
|
||||||
}),
|
},
|
||||||
);
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const fetchedMembers = new Collection();
|
const fetchedMembers = new Collection();
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user