# Edit a message

> Change a reply or message the bot already sent.

Source: https://docs.buildcord.dev/nodes/messages/edit-message/

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

## Settings

| Setting | What it does |
| --- | --- |
| Which message | The message to edit, by its link or ID. See [Naming a message](https://docs.buildcord.dev/nodes/messages#naming-a-message). Leave it empty to edit this flow's own message. |
| In channel | Only needed for a message given by ID that's in another channel. A link already says which channel. |
| Message | The new text. |
| Embed | The new embed. |
| Buttons and menus | The new component set. |
| Remove its buttons and menus | With no component set chosen above, the message keeps the ones it has unless you turn this on. |
| Mentions that notify | See [Mentions](https://docs.buildcord.dev/nodes/messages#mentions). |

## Ways out

`out`.

## Notes

- To edit a message an earlier run sent, keep `{sent.link}` from that run, for example in a [variable](https://docs.buildcord.dev/concepts/data) 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](https://docs.buildcord.dev/nodes/messages/update-button-message).

## Example

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

## Related

- [Update the button's message](https://docs.buildcord.dev/nodes/messages/update-button-message)
- [Read a message](https://docs.buildcord.dev/nodes/messages/read-message)
- [Delete a message](https://docs.buildcord.dev/nodes/messages/delete-message)
