discord / trigger / schema v1
Discord: Thread Created / Updated / Deleted
Trigger when a thread or forum post is created, changed, or deleted
Prerequisites
- Add the discord plugin inside this workflow.
- Connect and authorize a discord account before running this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
ServerguildId | discord_guild Required | |
Parent Channel FilterparentChannelId | discord_channel Optional | Only threads opened in these channels. E.g. one forum. Empty = anywhere. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_thread_create- On Created (output)on_thread_update- On Updated (output)on_thread_delete- On Deleted (output)thread_id- Thread ID (output)thread_name- Thread Name (output)parent_id- Parent Channel (output)guild_id- Server ID (output)owner_id- Opened By (output)archived- Archived (output)locked- Locked (output)message_count- Message Count (output)old_thread_name- Previous Name (output)created_at- Created At (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "thread_id",
"type": "snowflake",
"label": "Thread ID",
"bindingRole": "event_subject"
},
{
"key": "thread_name",
"type": "string",
"label": "Thread Name",
"bindingRole": "event_subject"
},
{
"key": "parent_id",
"type": "channel",
"label": "Parent Channel"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "owner_id",
"type": "user",
"label": "Opened By",
"bindingRole": "owner"
},
{
"key": "archived",
"type": "boolean",
"label": "Archived"
},
{
"key": "locked",
"type": "boolean",
"label": "Locked"
},
{
"key": "message_count",
"type": "number",
"label": "Message Count"
},
{
"key": "old_thread_name",
"type": "string",
"label": "Previous Name",
"description": "Updated only"
},
{
"key": "created_at",
"type": "timestamp",
"label": "Created At"
},
{
"key": "timestamp",
"type": "timestamp",
"label": "Timestamp"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
d59319dce66e39eb20ed343003ada02de6bebd96517fe3815384b71a65a8a681