Elementium Sign in
Contents

Protection · Step

Delete and warn

Delete a message, warn its author (a moderation case), and post a short notice that deletes itself.

Free plan message.delete_and_warn

In a flow

“When a button is clicked, delete and warn.”

Find links Blocked → Delete and warn: No links here.

What it does

Delete a message, warn its author (a moderation case), and post a short notice that deletes itself. 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: delete a message, warn its author (a moderation case), and post a short notice that deletes itself.

When not to

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

Typical wiring

Sockets: settings you can wire

Message Message

Leave empty for the message that started the flow.

What goes there: Type it in the side panel, or wire in a message. e.g. a link to the message

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromCountdown messageCreate pollCreate poll from a listExport form recordsFind messageForward messagePinned messagesPoll with resultsand 527 more

Reason Text

Why, for the case and the notice, like No links here. Variables allowed.

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 Breaking the rules.

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

Strikes Number

Strikes the warning adds, 0 for a warning with none.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

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

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more

Notice Text

Posted in the channel, then deleted. {reason} is filled in. Empty posts nothing. Variables allowed.

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 {user}, {reason}..

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

Notice stays (seconds) Number

How long the notice stays before it's deleted.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

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

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more

Values it gives

Case number Number

The warning's case, 0 when moderation is off. e.g. 12

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

Shortcuts

Often next

Related in Protection

Wires and sockets · Data values · Plans