Skip to content

Commit

Permalink
fix(GatewayGuildMembersChunkDispatchData): Omit guild_id for presen…
Browse files Browse the repository at this point in the history
…ces (#761)
  • Loading branch information
Jiralite authored Apr 30, 2023
1 parent 50ace3b commit 5079b16
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion deno/gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,11 @@ export type GatewayGuildMembersChunkDispatch = DataPayload<
GatewayGuildMembersChunkDispatchData
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
export type GatewayGuildMembersChunkPresence = Omit<RawGatewayPresenceUpdate, 'guild_id'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#guild-members-chunk
*/
Expand Down Expand Up @@ -1006,7 +1011,7 @@ export interface GatewayGuildMembersChunkDispatchData {
*
* See https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
presences?: RawGatewayPresenceUpdate[];
presences?: GatewayGuildMembersChunkPresence[];
/**
* The nonce used in the Guild Members Request
*
Expand Down
7 changes: 6 additions & 1 deletion deno/gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,11 @@ export type GatewayGuildMembersChunkDispatch = DataPayload<
GatewayGuildMembersChunkDispatchData
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
export type GatewayGuildMembersChunkPresence = Omit<RawGatewayPresenceUpdate, 'guild_id'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#guild-members-chunk
*/
Expand Down Expand Up @@ -1005,7 +1010,7 @@ export interface GatewayGuildMembersChunkDispatchData {
*
* See https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
presences?: RawGatewayPresenceUpdate[];
presences?: GatewayGuildMembersChunkPresence[];
/**
* The nonce used in the Guild Members Request
*
Expand Down
7 changes: 6 additions & 1 deletion gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,11 @@ export type GatewayGuildMembersChunkDispatch = DataPayload<
GatewayGuildMembersChunkDispatchData
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
export type GatewayGuildMembersChunkPresence = Omit<RawGatewayPresenceUpdate, 'guild_id'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#guild-members-chunk
*/
Expand Down Expand Up @@ -1006,7 +1011,7 @@ export interface GatewayGuildMembersChunkDispatchData {
*
* See https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
presences?: RawGatewayPresenceUpdate[];
presences?: GatewayGuildMembersChunkPresence[];
/**
* The nonce used in the Guild Members Request
*
Expand Down
7 changes: 6 additions & 1 deletion gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,11 @@ export type GatewayGuildMembersChunkDispatch = DataPayload<
GatewayGuildMembersChunkDispatchData
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
export type GatewayGuildMembersChunkPresence = Omit<RawGatewayPresenceUpdate, 'guild_id'>;

/**
* https://discord.com/developers/docs/topics/gateway-events#guild-members-chunk
*/
Expand Down Expand Up @@ -1005,7 +1010,7 @@ export interface GatewayGuildMembersChunkDispatchData {
*
* See https://discord.com/developers/docs/topics/gateway-events#update-presence
*/
presences?: RawGatewayPresenceUpdate[];
presences?: GatewayGuildMembersChunkPresence[];
/**
* The nonce used in the Guild Members Request
*
Expand Down

1 comment on commit 5079b16

@vercel
Copy link

@vercel vercel bot commented on 5079b16 Apr 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.