From d95d9562dcc514556f3a4ced3e8f3ee4c5ed1282 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Wed, 19 Jan 2022 18:03:44 -0500 Subject: [PATCH] feat(APIThreadMetadata): add `create_timestamp` field (#301) --- deno/payloads/v9/channel.ts | 4 ++++ payloads/v9/channel.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 24f35480..31625e44 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -707,6 +707,10 @@ export interface APIThreadMetadata { * Whether non-moderators can add other non-moderators to the thread; only available on private threads */ invitable?: boolean; + /** + * Timestamp when the thread was created; only populated for threads created after 2022-01-09 + */ + create_timestamp?: string; } export enum ThreadAutoArchiveDuration { diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 8c1108a6..6187ae78 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -707,6 +707,10 @@ export interface APIThreadMetadata { * Whether non-moderators can add other non-moderators to the thread; only available on private threads */ invitable?: boolean; + /** + * Timestamp when the thread was created; only populated for threads created after 2022-01-09 + */ + create_timestamp?: string; } export const enum ThreadAutoArchiveDuration {