class GuildForumThreadManager


export class GuildForumThreadManager extends ThreadManager<true>

Manages API methods for threads in forum channels and stores their cache.

The cache of this Manager

channel : ForumChannel

The channel this Manager belongs to

client : Client

The client that instantiated this Manager

holds : Constructable<Holds>

The data structure belonging to this manager.

Inherited from: DataManager

Creates a new thread in the channel.

// Create a new forum post
    name: 'Food Talk',
    autoArchiveDuration: ThreadAutoArchiveDuration.OneHour,
    message: {
     content: 'Discuss your favorite food!',
    reason: 'Needed a separate thread for food',
  .then(threadChannel => console.log(threadChannel))

Obtains a thread from Discord, or the channel cache if it's already available.

// Fetch a thread by its id
  .then(channel => console.log(

Returns: FetchedThreads if active & FetchedThreadsMore if archived.

cache?: boolean
) : Promise<FetchedThreads>

Obtains all active threads in the channel.

Inherited from: ThreadManager

fetchArchived() : Promise<FetchedThreadsMore>

Obtains a set of archived threads from Discord. This method requires the PermissionFlagsBits.ReadMessageHistory permission in the parent channel.

Inherited from: ThreadManager

Resolves a ThreadChannelResolvable to a ThreadChannel object.

Inherited from: ThreadManager

resolveId() : Snowflake

Resolves a ThreadChannelResolvable to a ThreadChannel id.

Inherited from: ThreadManager

valueOf() : Collection<Key, Holds>

Inherited from: DataManager