discord / trigger / schema v1
Discord: Channel Created / Updated / Deleted
Trigger when a channel is created, renamed, deleted, or its pins change
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 | |
Channel FilterchannelId | discord_channel Optional | Only these channels. Empty = any channel in the server. |
Channel Type FilterchannelTypeFilter | tags Optional | Only these types: text, voice, category, announcement, forum, stage, media. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_channel_create- On Created (output)on_channel_update- On Updated (output)on_channel_delete- On Deleted (output)on_channel_pins_update- On Pins Changed (output)channel_id- Channel ID (output)channel_name- Channel Name (output)channel_type- Channel Type (output)guild_id- Server ID (output)parent_id- Category ID (output)position- Position (output)topic- Topic (output)nsfw- NSFW (output)old_channel_name- Previous Name (output)old_topic- Previous Topic (output)created_at- Created At (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "event_subject"
},
{
"key": "channel_name",
"type": "string",
"label": "Channel Name",
"bindingRole": "event_subject"
},
{
"key": "channel_type",
"type": "string",
"label": "Channel Type"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "parent_id",
"type": "channel",
"label": "Category ID",
"bindingRole": "current_context"
},
{
"key": "position",
"type": "number",
"label": "Position"
},
{
"key": "topic",
"type": "string",
"label": "Topic"
},
{
"key": "nsfw",
"type": "boolean",
"label": "NSFW"
},
{
"key": "old_channel_name",
"type": "string",
"label": "Previous Name",
"description": "Updated only: what it was called before"
},
{
"key": "old_topic",
"type": "string",
"label": "Previous Topic"
},
{
"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
c2521021785259770e8a592e175d871b49111bef044fd38a2c2cf709d0f47108