Elementium Sign in
Contents

Protection · Step

AutoMod: add or remove patterns

Add regex patterns to a word rule (like invite links), or take some off, without touching its words.

Basic plan automod_rule.regex

In a flow

“When a button is clicked, AutoMod: add or remove patterns.”

/pattern add → AutoMod: add or remove patterns in Blocked words.

What it does

Add regex patterns to a word rule (like invite links), or take some off, without touching its words. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Protection in the palette.

When to use it

Use it to keep the server safe: add regex patterns to a word rule (like invite links), or take some off, without touching its words.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Rule Text

The AutoMod rule's name, as it shows in Server Settings > AutoMod.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses Blocked words.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

Patterns Text

Rust regex patterns, one a line. A word rule holds up to 10, each up to 260 characters.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses disc[o0]rd\.gg/\w+.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

Values it gives

Now Number

How many it has now. e.g. 3

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Often next

Related in Protection

Wires and sockets · Data values · Plans