class ThreadMemberManager

export class ThreadMemberManager extends CachedManager<Snowflake, ThreadMember, ThreadMemberResolvable>

Manages API methods for GuildMembers and stores their cache.

The cache of this Manager

readonly
client : Client

The client that instantiated this Manager

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: UserResolvable | '@me'
reason?: string
) : Promise<Snowflake>

Adds a member to the thread.

fetch(
options: ThreadMember<true> | ((FetchThreadMemberOptions & { withMember: true }) | { member: ThreadMember<true> })
) : Promise<ThreadMember<true>>

Fetches thread member(s) from Discord. This method requires the GatewayIntentBits.GuildMembers privileged gateway intent.

fetchMe() : Promise<ThreadMember>

Fetches the client user as a ThreadMember of the thread.

remove(
id: Snowflake | '@me'
reason?: string
) : Promise<Snowflake>

Remove a user from the thread.

Resolves a ThreadMemberResolvable to a ThreadMember object.

resolveId() : Snowflake

Resolves a ThreadMemberResolvable to a ThreadMember id string.

valueOf() : Collection<Key, Holds>

Inherited from: DataManager