.create(options)
options: StartThreadOptions → Promise<ThreadChannel>
Start a thread in a text or announcement channel. Forum and media channels must use createPost.
await channel.threads.create(options);Class
Create, list, and search threads in one parent channel.
new ThreadManager(channel: ThreadParentChannel)ThreadParentChanneloptions: StartThreadOptions → Promise<ThreadChannel>
Start a thread in a text or announcement channel. Forum and media channels must use createPost.
await channel.threads.create(options);options: StartForumThreadOptions → Promise<ThreadChannel>
Start a post in a forum or media channel. The post is a public thread. message is its first message.
await channel.threads.createPost(options);options: ThreadParentEditOptions → Promise<APIChannel>
Set the auto-archive and slowmode defaults copied onto new threads.
await channel.threads.editDefaults(options);options: FetchArchivedThreadsOptions → Promise<FetchedThreads>
List archived threads in this channel. before is an ISO-8601 archive timestamp.
await channel.threads.fetchArchived(options);options?: FetchJoinedArchivedThreadsOptions → Promise<FetchedThreads>
List private archived threads in this channel that the current user has joined. before is a thread snowflake.
await channel.threads.fetchJoinedPrivateArchived();options?: ThreadSearchOptions → Promise<ThreadSearchPage>
Search threads in this channel. Returns { indexing: true } while the search index is still building.
await channel.threads.search();