discord / trigger / schema v1
Discord: AutoMod Blocked Something
Trigger when Discord's built-in AutoMod acts on a message
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 | |
Rule FilterruleName | tags Optional | Only trigger for these AutoMod rules (by name). Empty = any rule. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_automod_action- On AutoMod Action (output)rule_id- Rule ID (output)rule_name- Rule Name (output)action_type- Action Taken (output)user_id- User ID (output)guild_id- Server ID (output)channel_id- Channel ID (output)content- Blocked Content (output)matched_keyword- Matched Keyword (output)matched_content- Matched Content (output)alert_message_id- Alert Message ID (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "rule_id",
"type": "snowflake",
"label": "Rule ID",
"bindingRole": "event_subject"
},
{
"key": "rule_name",
"type": "string",
"label": "Rule Name"
},
{
"key": "action_type",
"type": "string",
"label": "Action Taken",
"description": "block_message, send_alert_message or timeout"
},
{
"key": "user_id",
"type": "user",
"label": "User ID",
"bindingRole": "event_subject"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "content",
"type": "string",
"label": "Blocked Content"
},
{
"key": "matched_keyword",
"type": "string",
"label": "Matched Keyword"
},
{
"key": "matched_content",
"type": "string",
"label": "Matched Content"
},
{
"key": "alert_message_id",
"type": "snowflake",
"label": "Alert Message ID"
},
{
"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
0f0311979d6c3f61db2dec77479f9615bd096744725c7f66f78f03909a3fc560