discord / trigger / schema v1
Discord: Message Edited
Trigger when a message is edited in a Discord channel
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 trigger in any of these channels |
Keyword Filterkeyword | tags Optional | Only trigger if new content contains any of these words |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_message_edit- On Edit (output)message_id- Message ID (output)content- New Content (output)old_content- Previous Content (output)channel_id- Channel ID (output)guild_id- Server ID (output)author_id- Author ID (output)author_username- Author Username (output)author_avatar- Author Avatar URL (output)edited_at- Edited At (output)jump_url- Jump URL (output)member_roles- Author role IDs (output)
Output data schema
[
{
"key": "message_id",
"type": "snowflake",
"label": "Message ID",
"bindingRole": "event_subject"
},
{
"key": "content",
"type": "string",
"label": "New Content"
},
{
"key": "old_content",
"type": "string",
"label": "Previous Content"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "author_id",
"type": "user",
"label": "Author ID",
"bindingRole": "owner"
},
{
"key": "author_username",
"type": "string",
"label": "Author Username",
"bindingRole": "owner"
},
{
"key": "author_avatar",
"type": "url",
"label": "Author Avatar URL"
},
{
"key": "edited_at",
"type": "timestamp",
"label": "Edited At"
},
{
"key": "jump_url",
"type": "url",
"label": "Jump URL"
},
{
"key": "member_roles",
"type": "array",
"label": "Author role IDs",
"items": {
"key": "role_id",
"type": "snowflake"
}
}
]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
373259f0a8dd2ae2961242b0f8390ab52fce6fae0785be02e0146751c025cb54