GuildTextThreadManager

export class GuildTextThreadManager<AllowedThreadType> extends ThreadManager<false>
export class GuildTextThreadManager<AllowedThreadType> extends ThreadManager<false>
Manages API methods for ThreadChannel objects and stores their cache.

Extends

ThreadManager<false>
NameConstraintsOptionalDefaultDescription
AllowedThreadTypeNoNone
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
The channel this Manager belongs to
Inherited from ThreadManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(options):Promise<ThreadChannel>
Creates a new thread in the channel.
NameTypeOptionalDescription
optionsGuildTextThreadCreateOptions<AllowedThreadType>NoOptions to create a new thread
fetch(options, cacheOptions?):Promise<AnyThreadChannel | null>
Obtains a thread from Discord, or the channel cache if it's already available.
Returns
FetchedThreads if active & FetchedThreadsMore if archived.
NameTypeOptionalDescription
optionsThreadChannelResolvableNoThe options to fetch threads. If it is a ThreadChannelResolvable then the specified thread will be fetched. Fetches all active threads if undefined
cacheOptionsBaseFetchOptionsYesAdditional options for this fetch. The force field gets ignored if options is not a ThreadChannelResolvable
fetchActive(cache?):Promise<FetchedThreads>
Obtains all active threads in the channel.
NameTypeOptionalDescription
cachebooleanYesWhether to cache the fetched data
Inherited from ThreadManager
fetchArchived(options?, cache?):Promise<FetchedThreadsMore>
Obtains a set of archived threads from Discord. This method requires the permission in the parent channel.
NameTypeOptionalDescription
optionsFetchArchivedThreadOptionsYesThe options to fetch archived threads
cachebooleanYesWhether to cache the new thread objects if they aren't already
Inherited from ThreadManager
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
valueOf():Collection<K, Holds>