var trigger = automod_rule_update()
func main() {
send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "Rule ID: " + trigger.rule_id})
}
AutoMod Rule Updated
Event triggerAuto Moderation
Triggers when an auto moderation rule is updated.
Outputs
Rule ID
ID of the auto moderation rule.
Example: 123456789012345678
Server ID
ID of the server.
Example: 123456789012345678
Name
Name of the rule.
Example: Block Bad Words
Creator ID
User who created the rule.
Example: 123456789012345678
Enabled
Whether the rule is enabled.
Example: true
Event Type
Event type (Message Send or Member Update).
Example: Message Send
Trigger Type
Trigger type (Keyword, Spam, Keyword Preset, Mention Spam, Member Profile).
Example: Keyword
Build a bot using triggers like AutoMod Rule Updated
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
automod_rule_updateOutputs
| Field | InventScript name | Value |
|---|---|---|
| Rule ID | rule_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |
| Name | name | e.g. "Block Bad Words" |
| Creator ID | creator_id | e.g. "123456789012345678" |
| Enabled | enabled | e.g. "true" |
| Event Type | event_type | e.g. "Message Send" |
| Trigger Type | trigger_type | e.g. "Keyword" |