mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat(GuildMemberManager): nonce and chunk_count for _fetchMany (#4130)
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user