Actions53
- Message Actions
- Channel Actions
- Thread Actions
- Reaction Actions
- Guild (Server) Actions
- Member Actions
- Role Actions
- Voice Actions
- DM Actions
- Webhook Actions
- Invite Actions
Overview
This node operation creates a new thread in a specified Discord channel. It supports creating a thread either from an existing message or as a standalone thread. Users can specify the thread's name, the channel ID where the thread will be created, an optional message ID to start the thread from, and the auto-archive duration for the thread. This operation is useful for organizing discussions within Discord channels by creating focused conversation threads.
Use Case Examples
- Creating a discussion thread in a project management channel to discuss a specific task.
- Starting a new thread from a message to keep related replies grouped together.
Properties
| Name | Meaning |
|---|---|
| Channel ID | The ID of the Discord channel where the thread will be created. |
| Thread Name | The name of the thread to be created. |
| Message ID | Optional ID of the message to create the thread from; if empty, a standalone thread is created. |
| Auto Archive Duration | Duration in minutes before the thread automatically archives (e.g., 1 hour, 24 hours, 3 days, 7 days). |
| Additional Fields | Optional extra settings for the thread, such as embed JSON, TTS, reason for audit log, permissions, topic, NSFW flag, bitrate, user limit, invite settings, and more. |
Output
JSON
id- ID of the created thread.name- Name of the created thread.type- Type of the thread channel.archived- Whether the thread is archived.autoArchiveDuration- Duration in minutes before the thread auto-archives.
Dependencies
- Discord API
- Bot token credential
Troubleshooting
- Ensure the provided channel ID corresponds to a valid text-based Discord channel; otherwise, the node will throw a 'Channel not found or not text-based' error.
- If a message ID is provided, it must exist in the specified channel; otherwise, thread creation from the message will fail.
- Invalid JSON in the embed field will cause an error; ensure the JSON is correctly formatted.
- Bot token must have appropriate permissions to create threads in the specified channel.
Links
- Discord API - Start Thread in Forum Channel - Official Discord API documentation for creating threads in channels.