Manages API methods for thread-based channels and stores their cache.
Extends
CachedManager<Snowflake,ThreadChannel<ThreadOnly>,ThreadChannelResolvable>Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ThreadOnly | boolean | Yes | boolean | None |
Constructs a new instance of the
ThreadManager
className | Type | Optional | Description |
---|---|---|---|
channel | TextChannel | NewsChannel | ForumChannel | MediaChannel | No | None |
iterable | Iterable<RawThreadChannelData> | Yes | None |
The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerObtains 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 |