BuildcordDocs

Edit a message

Change a reply or message the bot already sent.

message.edit changes a message the bot already sent: its text, embed, or buttons and menus.

Settings

SettingWhat it does
Which messageThe message to edit, by its link or ID. See Naming a message. Leave it empty to edit this flow's own message.
In channelOnly needed for a message given by ID that's in another channel. A link already says which channel.
MessageThe new text.
EmbedThe new embed.
Buttons and menusThe new component set.
Remove its buttons and menusWith no component set chosen above, the message keeps the ones it has unless you turn this on.
Mentions that notifySee Mentions.

Ways out

out.

Notes

  • To edit a message an earlier run sent, keep {sent.link} from that run, for example in a variable or a row, and give it here.
  • Left empty, it edits the reply this flow already sent, or else the last message it sent.
  • To answer a button press by changing the message the button is on, use Update the button's message.

Example

Run on a schedule, load a stored message link, and edit a status board with the latest numbers.

On this page