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_rule

Inputs

FieldInventScript nameValue
Server IDserver_id
Rule IDrule_id

Outputs

FieldInventScript nameValue
Rule IDrule_id
Server IDserver_id
Namename
Creator IDcreator_id
Event Typeevent_type
Trigger Typetrigger_type
Enabledenabled

Example InventScript

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,
})

More auto moderation blocks