diff --git a/transformers/channel.ts b/transformers/channel.ts index 8a0ebb2ba..60550a0c1 100644 --- a/transformers/channel.ts +++ b/transformers/channel.ts @@ -64,6 +64,7 @@ export function transformChannel( createTimestamp: payload.channel.thread_metadata?.create_timestamp ? Date.parse(payload.channel.thread_metadata.create_timestamp) : undefined, + newlyCreated: payload.channel.newly_created, }; return channel as Optionalize; diff --git a/types/discord.ts b/types/discord.ts index c47a3c972..213f9518e 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -740,6 +740,8 @@ export interface DiscordChannel { member?: DiscordThreadMember; /** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a application command interaction */ permissions?: string; + /** When a thread is created this will be true on that channel payload for the thread. */ + newly_created?: boolean; } /** https://discord.com/developers/docs/topics/gateway#presence-update */