automodRule := get_automod_rule(Args{server_id: trigger.server_id, rule_id: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Rule ID: " + automodRule.rule_id,
})
Get AutoMod Rule
BlockAuto Moderation
Get details of an auto moderation rule.
Inputs
Server IDRequired
Server the rule belongs to.
Rule IDRequired
ID of the auto moderation rule.
Outputs
Rule ID
ID of the auto moderation rule.
Server ID
ID of the server.
Name
Name of the rule.
Creator ID
User who created the rule.
Event Type
Event type (Message Send or Member Update).
Trigger Type
Trigger type (Keyword, Spam, Keyword Preset, Mention Spam, Member Profile).
Enabled
Whether the rule is enabled.
Build a bot using blocks like Get AutoMod Rule
Use this block 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:
get_automod_ruleInputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id | |
| Rule ID | rule_id |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Rule ID | rule_id | |
| Server ID | server_id | |
| Name | name | |
| Creator ID | creator_id | |
| Event Type | event_type | |
| Trigger Type | trigger_type | |
| Enabled | enabled |