Preview environment

class ThreadMember

extends

Base
export class ThreadMember<HasMemberData extends boolean = boolean> extends Base

Represents a Member for a Thread.

Type Parameters

optional
HasMemberData? extends boolean = boolean

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

The flags for this thread member. This will be null if partial.

readonly
guildMember : HasMemberData extends true ? GuildMember : GuildMember | null

The guild member associated with this thread member

id : Snowflake

The id of the thread member

readonly
joinedAt : Date | null

The last time this member joined the thread

joinedTimestamp : number | null

The timestamp the member last joined the thread at

readonly
manageable : boolean

Whether the client user can manage this thread member

readonly
partial : false

Whether this thread member is a partial

The thread that this member is a part of

readonly
user : User | null

The user associated with this thread member

remove(
reason?: string
) : Promise<ThreadMember>

Removes this member from the thread.

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

valueOf() : string

Inherited from: Base