GuildForumChannel

class GuildForumChannel

A forum-style channel with individual posts organized as threads.

Extends:

Properties

Property

Type

Description

availableTags

ForumTag[]

Tags that posts in this channel can use.

type

15

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. availableTags replaces the whole tag list: include existing tags by id to 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.