class ThreadMemberManager

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
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 privileged gateway intent.

fetchMe() : Promise<ThreadMember>

Fetches the client user as a ThreadMember of the thread.

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

Remove a user from the thread.

Resolves a ThreadMemberResolvable to a ThreadMember object.

resolveId() : Snowflake | null

Resolves a ThreadMemberResolvable to a ThreadMember id string.

valueOf() : Collection<Key, Holds>

Inherited from: DataManager