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<Key, 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
The client user as a ThreadMember of this ThreadChannel
The thread this manager belongs to
add(member):Promise<Snowflake>
Adds a member to the thread.
NameTypeOptionalDescription
memberUserResolvable | '@me'NoThe member to add
fetch(options):Promise<ThreadMember<true>>
Fetches thread member(s) from Discord. This method requires the GatewayIntentBits.GuildMembers 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(member):Promise<Snowflake>
Remove a user from the thread.
NameTypeOptionalDescription
memberUserResolvable | '@me'NoThe member to remove
resolve(member):GuildMember | null
Resolves a ThreadMemberResolvable to a ThreadMember object.
NameTypeOptionalDescription
memberThreadMemberResolvableNoThe user that is part of the thread
resolveId(member):Snowflake | null
Resolves a ThreadMemberResolvable to a ThreadMember id string.
NameTypeOptionalDescription
memberThreadMemberResolvableNoThe user that is part of the guild
valueOf():Collection<Key, Holds>