diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 748a4453..ae707cbb 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -608,6 +608,10 @@ export interface APIThreadMetadata { * Whether the thread is locked; when a thread is locked, only users with `MANAGE_THREADS` can unarchive it */ locked?: boolean; + /** + * Whether non-moderators can add other non-moderators to the thread; only available on private threads + */ + invitable?: boolean; } export enum ThreadAutoArchiveDuration { diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 92653d14..e3e2b872 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -130,6 +130,12 @@ export interface RESTPatchAPIChannelJSONBody { * Channel types: text, news */ default_auto_archive_duration?: ThreadAutoArchiveDuration; + /** + * Whether non-moderators can add other non-moderators to the thread + * + * Channel types: privateThread + */ + invitable?: boolean; } /** @@ -603,6 +609,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes * @default 12 */ type?: ChannelType.GuildNewsThread | ChannelType.GuildPublicThread | ChannelType.GuildPrivateThread; + /** + * Whether non-moderators can add other non-moderators to the thread; only available when creating a private thread + */ + invitable?: boolean; } /** diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index 5a852b52..aabbd811 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -608,6 +608,10 @@ export interface APIThreadMetadata { * Whether the thread is locked; when a thread is locked, only users with `MANAGE_THREADS` can unarchive it */ locked?: boolean; + /** + * Whether non-moderators can add other non-moderators to the thread; only available on private threads + */ + invitable?: boolean; } export const enum ThreadAutoArchiveDuration { diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 74462592..308f8c86 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -130,6 +130,12 @@ export interface RESTPatchAPIChannelJSONBody { * Channel types: text, news */ default_auto_archive_duration?: ThreadAutoArchiveDuration; + /** + * Whether non-moderators can add other non-moderators to the thread + * + * Channel types: privateThread + */ + invitable?: boolean; } /** @@ -603,6 +609,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes * @default 12 */ type?: ChannelType.GuildNewsThread | ChannelType.GuildPublicThread | ChannelType.GuildPrivateThread; + /** + * Whether non-moderators can add other non-moderators to the thread; only available when creating a private thread + */ + invitable?: boolean; } /**