diff --git a/src/transformers/channel.ts b/src/transformers/channel.ts index e91c31a1c..f43b82e33 100644 --- a/src/transformers/channel.ts +++ b/src/transformers/channel.ts @@ -73,6 +73,8 @@ export function transformChannel( botIsMember: Boolean(payload.channel.member), archived: payload.channel.thread_metadata?.archived, locked: payload.channel.thread_metadata?.locked, + invitable: payload.channel.invitable, + createTimestamp: payload.channel.create_timestamp, }; } @@ -143,4 +145,6 @@ export interface DiscordenoChannel { parentId?: bigint; /** The voice states that are in this channel assuming it is a voice channel. */ voiceStates?: Collection; + /** timestamp when the thread was created; only populated for threads created after 2022-01-09 */ + createTimestamp?: string; } diff --git a/src/types/channels/channel.ts b/src/types/channels/channel.ts index 022a86b9b..8c2dfd6e0 100644 --- a/src/types/channels/channel.ts +++ b/src/types/channels/channel.ts @@ -60,4 +60,8 @@ export interface Channel { defaultAutoArchiveDuration?: number; /** 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; + /** whether non-moderators can add other non-moderators to a thread; only available on private threads */ + invitable?: boolean; + /** timestamp when the thread was created; only populated for threads created after 2022-01-09 */ + createTimestamp?: string; }