Skip to content

ThreadManager

ThreadManager ⇐ BaseThreadManager

A class representing a thread manager for a specific channel in a guild. Extends the BaseThreadManager class.

Kind: global class
Extends: BaseThreadManager

new ThreadManager(channelId, guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
channelIdstringThe ID of the channel.
guildIdstringThe ID of the guild.
clientClientThe client object.

threadManager.cache ⇒ Array

Retrieves the cache items that have a parentId matching the channelId of the current instance.

Kind: instance property of ThreadManager
Returns: Array - An array of cache items that have a matching parentId.