From ca6a95d69c7b93f564f10cce422faf5ea4133be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aura=20Rom=C3=A1n?= Date: Sun, 16 Apr 2023 11:26:49 +0200 Subject: [PATCH] fix(RESTPostAPIChannelMessagesThreadsJSONBody): mark `auto_archive_duration` as optional --- deno/rest/v10/channel.ts | 2 +- deno/rest/v9/channel.ts | 2 +- rest/v10/channel.ts | 2 +- rest/v9/channel.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 25285876..18b854a1 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -608,7 +608,7 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ - auto_archive_duration: ThreadAutoArchiveDuration; + auto_archive_duration?: ThreadAutoArchiveDuration | undefined; /** * Amount of seconds a user has to wait before sending another message (0-21600) */ diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 7ca8f06c..a51b80ca 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -622,7 +622,7 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ - auto_archive_duration: ThreadAutoArchiveDuration; + auto_archive_duration?: ThreadAutoArchiveDuration | undefined; /** * Amount of seconds a user has to wait before sending another message (0-21600) */ diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index a1665483..56e569b2 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -608,7 +608,7 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ - auto_archive_duration: ThreadAutoArchiveDuration; + auto_archive_duration?: ThreadAutoArchiveDuration | undefined; /** * Amount of seconds a user has to wait before sending another message (0-21600) */ diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 74e05e31..713f7c3e 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -622,7 +622,7 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ - auto_archive_duration: ThreadAutoArchiveDuration; + auto_archive_duration?: ThreadAutoArchiveDuration | undefined; /** * Amount of seconds a user has to wait before sending another message (0-21600) */