GuildForumChannel
- class GuildForumChannel
A forum-style channel with individual posts organized as threads.
- Extends:
Properties
Property
Type
Description
availableTagsForumTag[]Tags that posts in this channel can use.
type15
The type of this channel. Check it to narrow the channel to its subclass.
Methods
-
async GuildForumChannel.createPost(options:
ForumPostCreateOptions) Promise<ThreadChannel> Create a new post (a thread with its first message).
- Parameters:
options: The post creation options including name, message content, and optional tags.
- Returns:
The created thread.
-
async GuildForumChannel.edit(options:
ForumChannelEditOptions) Promise<GuildForumChannel> Edit forum channel properties.
availableTagsreplaces the whole tag list: include existing tags byidto keep them.await forum.edit({ availableTags: [...forum.availableTags, { name: "Solved", emojiName: "✅" }], });
- Parameters:
options: The forum channel properties to update.
- Returns:
The updated forum channel.
-
async GuildForumChannel.fetchActiveThreads() Promise<
ThreadChannel[]> List this channel’s active posts.
-
async GuildForumChannel.fetchArchivedThreads(options:
ArchivedThreadsOptions) Promise<ArchivedThreadPage> List archived posts, newest first. See
GuildTextChannel.fetchArchivedThreads()for paging.