v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Discord

Create a Discord public thread

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

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.