Skip to content

Commit

Permalink
feat(GatewayThreadCreateDispatch): Add newly_created field` (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Feb 1, 2022
1 parent c48aab3 commit 7e54215
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion deno/gateway/v9.ts
Expand Up @@ -27,6 +27,7 @@ import type {
GatewayVoiceState,
InviteTargetType,
PresenceUpdateStatus,
APIThreadChannel,
} from '../payloads/v9/mod.ts';
import type { Nullable } from '../utils/internals.ts';

Expand Down Expand Up @@ -1280,7 +1281,12 @@ export type GatewayThreadCreateDispatch = GatewayChannelModifyDispatch;
/**
* https://discord.com/developers/docs/topics/gateway#thread-create
*/
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData;
export interface GatewayThreadCreateDispatchData extends APIThreadChannel {
/**
* Whether the thread is newly created or not.
*/
newly_created: boolean;
}

/**
* https://discord.com/developers/docs/topics/gateway#thread-update
Expand Down
8 changes: 7 additions & 1 deletion gateway/v9.ts
Expand Up @@ -27,6 +27,7 @@ import type {
GatewayVoiceState,
InviteTargetType,
PresenceUpdateStatus,
APIThreadChannel,
} from '../payloads/v9/index';
import type { Nullable } from '../utils/internals';

Expand Down Expand Up @@ -1280,7 +1281,12 @@ export type GatewayThreadCreateDispatch = GatewayChannelModifyDispatch;
/**
* https://discord.com/developers/docs/topics/gateway#thread-create
*/
export type GatewayThreadCreateDispatchData = GatewayChannelModifyDispatchData;
export interface GatewayThreadCreateDispatchData extends APIThreadChannel {
/**
* 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 7e54215

Please sign in to comment.