Skip to content

Commit

Permalink
feat(GatewayThreadCreateDispatch): add newly_created field
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Feb 1, 2022
1 parent 70bab5d commit 3de5f90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion deno/gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,12 @@ export type GatewayThreadCreateDispatch = GatewayChannelModifyDispatch;
/**
* https://discord.com/developers/docs/topics/gateway#thread-create
*/
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData;
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData & {
/**
* Whether the thread is newly created or not.
*/
newly_created: boolean;
};

/**
* https://discord.com/developers/docs/topics/gateway#thread-update
Expand Down
7 changes: 6 additions & 1 deletion gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,12 @@ export type GatewayThreadCreateDispatch = GatewayChannelModifyDispatch;
/**
* https://discord.com/developers/docs/topics/gateway#thread-create
*/
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData;
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData & {
/**
* Whether the thread is newly created or not.
*/
newly_created: boolean;
};

/**
* https://discord.com/developers/docs/topics/gateway#thread-update
Expand Down

0 comments on commit 3de5f90

Please sign in to comment.