Discord

Create a Discord public thread

Changed on

Creates a public thread in a channel. Pass messageId to start the thread from an existing message, or omit it to create a standalone thread.

Threads created here are always public. Requires the bot to hold Create Public Threads, which the Zernio bot requests at install time.

post/v1/discord/channels/{channelId}/threads

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/discord/channels/{channelId}/threads
  • Auth: HTTP bearer

Path parameters

channelIdstring required

Discord channel snowflake ID

Query parameters

accountIdstring required

SocialAccount _id of the Discord account bound to this channel's guild

Request body

namestring required

Thread name

messageIdstring

Optional message snowflake to start the thread from. Omit for a standalone thread.

autoArchiveDuration60 | 1440 | 4320 | 10080

Minutes of inactivity before the thread auto-archives. Discord accepts only these four values.

Response

Thread created.

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status