From a77fa77a67f6f1472d40f6b405d88e1cf8823cef Mon Sep 17 00:00:00 2001 From: Awesome Stickz Date: Sun, 23 Feb 2025 14:45:51 +0530 Subject: [PATCH] fix: thread create autoArchiveDuration being a required param (#4137) --- packages/types/src/discordeno.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 118e22c5d..2550ebf5a 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -993,7 +993,7 @@ export interface CreateForumPostWithMessage { /** 1-100 character thread name */ name: string /** Duration in minutes to automatically archive the thread after recent activity */ - autoArchiveDuration: 60 | 1440 | 4320 | 10080 + autoArchiveDuration?: 60 | 1440 | 4320 | 10080 /** Amount of seconds a user has to wait before sending another message (0-21600) */ rateLimitPerUser?: number | null /** contents of the first message in the forum/media thread */ @@ -1037,7 +1037,7 @@ export interface StartThreadWithMessage { /** 1-100 character thread name */ name: string /** Duration in minutes to automatically archive the thread after recent activity */ - autoArchiveDuration: 60 | 1440 | 4320 | 10080 + autoArchiveDuration?: 60 | 1440 | 4320 | 10080 /** Amount of seconds a user has to wait before sending another message (0-21600) */ rateLimitPerUser?: number | null } @@ -1046,7 +1046,7 @@ export interface StartThreadWithoutMessage { /** 1-100 character thread name */ name: string /** Duration in minutes to automatically archive the thread after recent activity */ - autoArchiveDuration: 60 | 1440 | 4320 | 10080 + autoArchiveDuration?: 60 | 1440 | 4320 | 10080 /** Amount of seconds a user has to wait before sending another message (0-21600) */ rateLimitPerUser?: number | null /** the type of thread to create */