Manages API methods for threads in forum channels and stores their cache.
Extends
ThreadManager<true>The cache of items for this manager.
Inherited from DataManagerThe channel this Manager belongs to
Inherited from ThreadManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a new thread in the channel.
Name | Type | Optional | Description |
---|---|---|---|
options | GuildForumThreadCreateOptions | No | Options to create a new thread |
Obtains a thread from Discord, or the channel cache if it's already available.
Returns
FetchedThreads if active & FetchedThreadsMore if archived.Name | Type | Optional | Description |
---|---|---|---|
options | ThreadChannelResolvable | No | The options to fetch threads. If it is a ThreadChannelResolvable then the specified thread will be fetched. Fetches all active threads if undefined |
cacheOptions | BaseFetchOptions | Yes | Additional options for this fetch. The force field gets ignored if options is not a ThreadChannelResolvable |
Obtains all active threads in the channel.
Name | Type | Optional | Description |
---|---|---|---|
cache | boolean | Yes | Whether to cache the fetched data |
Obtains a set of archived threads from Discord. This method requires the permission in the parent channel.
Name | Type | Optional | Description |
---|---|---|---|
options | FetchArchivedThreadOptions | Yes | The options to fetch archived threads |
cache | boolean | Yes | Whether to cache the new thread objects if they aren't already |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |