discord / trigger / schema v1
Discord: AutoMod Rule Changed
Trigger when an AutoMod rule is created, edited, or removed
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 these rules (by name). Empty = any rule. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_automod_rule_create- On Created (output)on_automod_rule_update- On Updated (output)on_automod_rule_delete- On Removed (output)rule_id- Rule ID (output)rule_name- Rule Name (output)guild_id- Server ID (output)creator_id- Created By (output)enabled- Enabled (output)trigger_type- Trigger Type (output)keywords- Keywords (output)exempt_role_ids- Exempt Roles (output)exempt_channel_ids- Exempt Channels (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",
"bindingRole": "event_subject"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "creator_id",
"type": "user",
"label": "Created By",
"bindingRole": "actor"
},
{
"key": "enabled",
"type": "boolean",
"label": "Enabled"
},
{
"key": "trigger_type",
"type": "string",
"label": "Trigger Type"
},
{
"key": "keywords",
"type": "array",
"label": "Keywords",
"items": {
"key": "keyword",
"type": "string"
}
},
{
"key": "exempt_role_ids",
"type": "array",
"label": "Exempt Roles",
"items": {
"key": "role_id",
"type": "snowflake"
}
},
{
"key": "exempt_channel_ids",
"type": "array",
"label": "Exempt Channels",
"items": {
"key": "channel_id",
"type": "snowflake"
}
},
{
"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
15a4429348e917b978c10a87d62471ff78d7363c6df5a721feb0c61821737597