class ThreadMemberManager

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

Manages API methods for GuildMembers and stores their cache.

The cache of this Manager

client : Client

The client that instantiated this Manager

holds : Constructable<Holds>

The data structure belonging to this manager.

Inherited from: DataManager

me : ThreadMember | null

The client user as a ThreadMember of this ThreadChannel

The thread this manager belongs to

member: UserResolvable | '@me'
reason?: string
) : Promise<Snowflake>

Adds a member to the thread.

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.

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