ThreadMember
ThreadMember
Kind: global class
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.”
Param | Description |
---|---|
[data] | The data that was received from the API. |
guildId | The ID of the guild the thread is in. |
threadId | The ID of the thread |
client | Discord.Client |
threadMember.guild ⇒
It returns the guild object of the guild ID that is stored in the database
Kind: instance property of ThreadMember
Returns: The guild object.
threadMember.thread ⇒
It returns the channel object of the thread.
Kind: instance property of ThreadMember
Returns: The thread channel.
threadMember.user ⇒
It returns the user object of the user who sent the message
Kind: instance property of ThreadMember
Returns: The user object.
threadMember.remove() ⇒
It removes a user from a thread
Kind: instance method of ThreadMember
Returns: The thread member object.