discord / trigger / schema v1
Discord: Message Deleted
Trigger when a message is deleted 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 the deleted message contained any of these words |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_message_delete- On Delete (output)message_id- Message ID (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)content- Content (cached) (output)deleted_at- Deleted At (output)member_roles- Author role IDs (output)
Output data schema
[
{
"key": "message_id",
"type": "snowflake",
"label": "Message ID",
"bindingRole": "event_subject"
},
{
"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": "content",
"type": "string",
"label": "Content (cached)"
},
{
"key": "deleted_at",
"type": "timestamp",
"label": "Deleted At"
},
{
"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
409c1e504d22c1414aa1267ef7866283e0788540980afc4f14e536da8a6f4dea