AutoMod Rule Created

Event triggerAuto Moderation

Triggers when an auto moderation rule is created.

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 Created

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_create

Outputs

FieldInventScript nameValue
Rule IDrule_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Namenamee.g. "Block Bad Words"
Creator IDcreator_ide.g. "123456789012345678"
Enabledenablede.g. "true"
Event Typeevent_typee.g. "Message Send"
Trigger Typetrigger_typee.g. "Keyword"

Example InventScript

var trigger = automod_rule_create()

func main() {
	send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "Rule ID: " + trigger.rule_id})
}

More auto moderation triggers