fix(RESTPostAPIChannelMessagesThreadsJSONBody): mark auto_archive_duration as optional

This commit is contained in:
Aura Román
2023-04-16 11:26:49 +02:00
committed by GitHub
parent 9a66d21f49
commit ca6a95d69c
4 changed files with 4 additions and 4 deletions

View File

@@ -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)
*/

View File

@@ -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)
*/

View File

@@ -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)
*/

View File

@@ -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)
*/