Elementium Sign in
Contents

Starts when · Starts a flow

When a message is deleted

A message is deleted, by its author or by staff. If the bot hadn't seen the message, only its ID and channel are known.

Free plan events.message_deleted

In a flow

“When a message is deleted, the steps wired after it run.”

Log 'A message by @Sam was deleted in #general'.

What it does

A message is deleted, by its author or by staff. If the bot hadn't seen the message, only its ID and channel are known. It starts a flow, and gives the steps after it values about what happened. It gives 5 values later steps can use. Find it under Starts when in the palette.

When to use it

Use it to start a flow when a message is deleted.

When not to

If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.

Typical wiring

Values it gives

Who wrote it Member

The person who posted the message. Empty if the bot hadn't seen it. e.g. @Sam

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

Connects toA member's variablesAdd a labelAdd a staff noteAdd answer to formAdd to a counterAdd to a leaderboardAdd to threadAdd to ticketand 648 more

Where it was Channel

The channel the message was in. e.g. #general

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

Connects toAdd a forum tagAdd to threadAge-restrict a channelAI summary of a channelAnti-nuke guardArchive channelArchive or lock threadAsk a questionand 640 more

Message ID Text

The deleted message's ID. e.g. 1290000000000000000

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

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

What it said Text

The deleted text. Empty unless the bot has the Message Content intent. Empty if the bot hadn't seen the message since it last started. e.g. buy cheap nitro

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

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

Was seen before Yes / no

True when the bot had seen the message, so its author and text are known. e.g. false

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

Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more

Often next

Related in Starts when

Wires and sockets · Data values · Plans