Skip to content

ThreadMember

Kind: global class

new ThreadMember([data], guildId, threadId, client)

Section titled “new ThreadMember([data], guildId, threadId, client)”

“This function is used to create a new ThreadMember object, which is used to represent a member of a thread.”

ParamDescription
[data]The data that was received from the API.
guildIdThe ID of the guild the thread is in.
threadIdThe ID of the thread
clientDiscord.Client

It returns the guild object of the guild ID that is stored in the database

Kind: instance property of ThreadMember
Returns: The guild object.

It returns the channel object of the thread.

Kind: instance property of ThreadMember
Returns: The thread channel.

It returns the user object of the user who sent the message

Kind: instance property of ThreadMember
Returns: The user object.

It removes a user from a thread

Kind: instance method of ThreadMember
Returns: The thread member object.