No summary provided.
constructor(rest)
Constructs a new instance of the
ThreadsAPI
className | Type | Optional | Description |
---|---|---|---|
rest | REST | No | None |
Adds a member to a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to add the member to |
userId | Snowflake | No | The id of the user to add to the thread |
options | Pick<RequestData, 'signal'> | Yes | The options for adding the member to the thread |
Fetches all members of a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to fetch the members from |
options | Pick<RequestData, 'signal'> | Yes | The options for fetching the members |
Fetches a member of a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to fetch the member from |
userId | Snowflake | No | The id of the user |
options | Pick<RequestData, 'signal'> | Yes | The options for fetching the member |
Adds the current user to a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to join |
options | Pick<RequestData, 'signal'> | Yes | The options for joining the thread |
Removes the current user from a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to leave |
options | Pick<RequestData, 'signal'> | Yes | The options for leaving the thread |
Removes a member from a thread
Name | Type | Optional | Description |
---|---|---|---|
threadId | Snowflake | No | The id of the thread to remove the member from |
userId | Snowflake | No | The id of the user to remove from the thread |
options | Pick<RequestData, 'signal'> | Yes | The options for removing the member from the thread |