fix: thread create autoArchiveDuration being a required param (#4137)

This commit is contained in:
Awesome Stickz
2025-02-23 14:45:51 +05:30
committed by GitHub
parent 280b6f4b74
commit a77fa77a67

View File

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