AutoMod Action Executed

Event triggerAuto Moderation

Triggers when an auto moderation rule action is executed (e.g. message blocked, alert sent, user timed out).

Outputs

Server ID

ID of the server where the action was executed.

Example: 123456789012345678

Rule ID

The rule that was triggered.

Example: 123456789012345678

Action Type

The action type (Block Message, Send Alert Message, Timeout).

Example: Block Message

Rule Trigger Type

The trigger type (Keyword, Spam, Keyword Preset, Mention Spam, Member Profile).

Example: Keyword

User ID

The user whose content triggered the rule.

Example: 123456789012345678

Channel ID

Channel where content was flagged.

Example: 123456789012345678

Message ID

Message that triggered the rule (empty if blocked).

Example: 123456789012345678

Alert System Message ID

ID of the alert message sent to the alert channel.

Example: 123456789012345678

Content

The user's message content.

Example: bad word here

Matched Keyword

The keyword that matched.

Example: badword

Matched Content

The substring of content that matched.

Example: badword

Build a bot using triggers like AutoMod Action Executed

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_action_execution

Outputs

FieldInventScript nameValue
Server IDserver_ide.g. "123456789012345678"
Rule IDrule_ide.g. "123456789012345678"
Action Typeaction_typee.g. "Block Message"
Rule Trigger Typerule_trigger_typee.g. "Keyword"
User IDuser_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "123456789012345678"
Message IDmessage_ide.g. "123456789012345678"
Alert System Message IDalert_system_message_ide.g. "123456789012345678"
Contentcontente.g. "bad word here"
Matched Keywordmatched_keyworde.g. "badword"
Matched Contentmatched_contente.g. "badword"

Example InventScript

var trigger = automod_action_execution()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Server ID: " + trigger.server_id,
	})
}

More auto moderation triggers