feat v13: add not_found to guildMembersChunk data

#9032 djs
This commit is contained in:
March 7th 2023-01-10 17:58:58 +07:00
parent 85d2bdbdc4
commit 579edfa8fe
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,8 @@ module.exports = (client, { d: data }) => {
* @property {number} index Index of the received chunk
* @property {number} count Number of chunks the client should receive
* @property {?string} nonce Nonce for this chunk
* @property {Array<*>} notFound An array of whatever could not be found
* when using {@link Opcodes.REQUEST_GUILD_MEMBERS}
*/
/**
@ -32,5 +34,6 @@ module.exports = (client, { d: data }) => {
count: data.chunk_count,
index: data.chunk_index,
nonce: data.nonce,
notFound: data.not_found,
});
};

2
typings/index.d.ts vendored
View File

@ -4561,7 +4561,7 @@ export interface ClientEvents extends BaseClientEvents {
guildMembersChunk: [
members: Collection<Snowflake, GuildMember>,
guild: Guild,
data: { count: number; index: number; nonce: string | undefined },
data: { count: number; index: number; nonce: string | undefined; notFound: unknown[] },
];
guildMemberUpdate: [oldMember: GuildMember | PartialGuildMember, newMember: GuildMember];
guildMemberListUpdate: [