Elementium Sign in
Contents

Starts when · Starts a flow

When a message is edited

Someone edits a message they posted. Bots' edits and link previews loading don't count.

Free plan events.message_edited

In a flow

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

Post the old and new text to #mod-log.

What it does

Someone edits a message they posted. Bots' edits and link previews loading don't count. It starts a flow, and gives the steps after it values about what happened. It gives 6 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 edited.

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 edited it Member

The person who edited their message. 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 happened Channel

The channel the message is 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

The message Message

The edited message, as a link. e.g. https://discord.com/channels/1/2/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 toAttached filesCancel giveawayClear reactionsDelete and warnDelete messageDelete message laterEdit messageEdit to layoutand 578 more

Before Text

The text before the edit. Empty unless the bot has the Message Content intent. Empty if the bot hadn't seen the message since it last started. e.g. helo

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

After Text

The text after the edit. Empty unless the bot has the Message Content intent. e.g. hello

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 the message from before the edit, so Before can be filled in. e.g. true

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