No summary provided.
Constructs a new instance of the
ThreadsAPI class| Name | 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 to use when adding the member to the thread |
Creates a new thread
| Name | Type | Optional | Description |
|---|---|---|---|
| channelId | Snowflake | No | The id of the channel to start the thread in |
| body | RESTPostAPIChannelThreadsJSONBody | No | The data to use when starting the thread |
| messageId | Snowflake | Yes | The id of the message to start the thread from |
| options | Pick<RequestData, 'signal'> | Yes | The options to use when starting the thread |
Creates a new forum post
| Name | Type | Optional | Description |
|---|---|---|---|
| channelId | Snowflake | No | The id of the forum channel to start the thread in |
| body | StartForumThreadOptions | No | The data to use when starting the thread |
| options | Pick<RequestData, 'signal'> | Yes | The options to use when starting the thread |
Fetches a thread
| Name | Type | Optional | Description |
|---|---|---|---|
| threadId | Snowflake | No | The id of the thread |
| options | Pick<RequestData, 'signal'> | Yes | The options to use when fetching 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 to use when 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 to use when 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 to use when 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 to use when 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 to use when removing the member from the thread |