ThreadMemberManager

export class ThreadMemberManager extends CachedManager<Snowflake, ThreadMember, ThreadMemberResolvable>
export class ThreadMemberManager extends CachedManager<Snowflake, ThreadMember, ThreadMemberResolvable>
Manages API methods for GuildMembers and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
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
Readonly
me:ThreadMember | null
The client user as a ThreadMember of this ThreadChannel
The thread this manager belongs to
add(member, reason?):Promise<Snowflake>
Adds a member to the thread.
NameTypeOptionalDescription
memberUserResolvable | '@me'NoThe member to add
reasonstringYesThe reason for adding this member
fetch(options):Promise<ThreadMember<true>>
Fetches thread member(s) from Discord. This method requires the privileged gateway intent.
NameTypeOptionalDescription
optionsThreadMember<true> | ((FetchThreadMemberOptions & { withMember: true }) | { member: ThreadMember<true> })NoOptions for fetching thread member(s)
fetchMe(options?):Promise<ThreadMember>
Fetches the client user as a ThreadMember of the thread.
NameTypeOptionalDescription
optionsBaseFetchOptionsYesThe options for fetching the member
remove(id, reason?):Promise<Snowflake>
Remove a user from the thread.
NameTypeOptionalDescription
idSnowflake | '@me'NoThe id of the member to remove
reasonstringYesThe reason for removing this member from the thread
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>