feat(GuildMemberManager): nonce and chunk_count for _fetchMany (#4130)

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>
This commit is contained in:
Kevin
2020-05-04 12:48:33 +02:00
committed by GitHub
parent 2617d3c9f3
commit ec0227a476
4 changed files with 35 additions and 7 deletions

View File

@@ -17,6 +17,14 @@ module.exports = (client, { d: data }) => {
* @event Client#guildMembersChunk
* @param {Collection<Snowflake, GuildMember>} members The members in the chunk
* @param {Guild} guild The guild related to the member chunk
* @param {Object} chunk Properties of the received chunk
* @param {number} chunk.index Index of the received chunk
* @param {number} chunk.count Number of chunks the client should receive
* @param {?string} chunk.nonce Nonce for this chunk
*/
client.emit(Events.GUILD_MEMBERS_CHUNK, members, guild);
client.emit(Events.GUILD_MEMBERS_CHUNK, members, guild, {
count: data.chunk_count,
index: data.chunk_index,
nonce: data.nonce,
});
};