# Messages

> Nodes that reply, send, edit, read, delete and react to messages.

Source: https://docs.buildcord.dev/nodes/messages/

Message nodes are how a bot talks. Most reply to the person who started the flow. A few post elsewhere, and a few read or change messages that already exist.

> **Note: Answer once, then send**
>
> A command or button press can be answered once. Use a reply node first, then [Send to a channel](https://docs.buildcord.dev/nodes/messages/send-to-channel) or [Edit a message](https://docs.buildcord.dev/nodes/messages/edit-message) for anything after.

## Reply to the person

- [Reply](https://docs.buildcord.dev/nodes/messages/reply): Text, an embed, buttons, menus and files in one reply.

- [Random reply](https://docs.buildcord.dev/nodes/messages/random-reply): One of several lines, at random.

- [Message with buttons or a menu](https://docs.buildcord.dev/nodes/messages/message-with-buttons): Buttons and menu choices that each lead somewhere.

- [Defer reply](https://docs.buildcord.dev/nodes/messages/defer-reply): Show "thinking…" while slow steps run.

- [Send a form](https://docs.buildcord.dev/nodes/messages/send-form): Open a modal and wait for answers.

## Send, read and change other messages

- [Send to a channel](https://docs.buildcord.dev/nodes/messages/send-to-channel): Post in a channel or thread, or as a reply.

- [Direct message](https://docs.buildcord.dev/nodes/messages/direct-message): Message a member privately.

- [Send as someone else](https://docs.buildcord.dev/nodes/messages/send-as-someone-else): Post with another name and picture.

- [Read a message](https://docs.buildcord.dev/nodes/messages/read-message): Look up any message by its link.

- [Edit a message](https://docs.buildcord.dev/nodes/messages/edit-message): Change a message the bot sent.

- [Update the button's message](https://docs.buildcord.dev/nodes/messages/update-button-message): Answer a press by changing its message.

- [Delete a message](https://docs.buildcord.dev/nodes/messages/delete-message): Remove any message.

- [Publish a message](https://docs.buildcord.dev/nodes/messages/publish-message): Push an announcement to followers.

- [React to a message](https://docs.buildcord.dev/nodes/messages/react): Add an emoji reaction.

- [Remove a reaction](https://docs.buildcord.dev/nodes/messages/remove-reaction): Take reactions away.

- [Pin a message](https://docs.buildcord.dev/nodes/messages/pin-message): Pin or unpin a message.

## Naming a message

Nodes that act on a message that already exists (edit, read, delete, react, pin, reply to) take a **Message** setting. It can be:

| Written as | Means |
| --- | --- |
| A link, such as `https://discord.com/channels/1/2/3` | That message, wherever it is. Right-click a message and choose **Copy Message Link**. |
| `channel-message`, two ids joined by a dash | What Discord copies with Shift held down. |
| An id alone | That message in the flow's own channel. |
| A token | `{sent.link}` is the message this flow last sent, `{message.link}` the one that started it, `{fetched.link}` the one last read. |

Left empty, each node says what it acts on instead, usually the message that started the flow.

## Mentions

Nodes that send a message have **Mentions that notify**. A mention written in the message always shows; this decides who actually gets a ping:

| Choice | Pings |
| --- | --- |
| Members only | Members, never roles or `@everyone`. This is the default. |
| Members and roles | Members and roles, never `@everyone`. |
| All of them | Everyone mentioned, including `@everyone` and `@here`. |
| None | Nobody. |

Choose **All of them** only for a message whose text you wrote yourself, such as an announcement. With text people typed in it, anyone could make the bot ping the whole server.

## Files

Reply, Send to a channel and Direct message can attach files: one address per line, up to 10 files of 10 MB each. The bot fetches them when the step runs. `{fetched.attachment}` attaches the first file of a message read with [Read a message](https://docs.buildcord.dev/nodes/messages/read-message).

## Older nodes

Plain text reply, Embed reply and Message with a select menu are no longer in the picker: [Reply](https://docs.buildcord.dev/nodes/messages/reply) and [Message with buttons or a menu](https://docs.buildcord.dev/nodes/messages/message-with-buttons) do the same and more. Flows that have them keep working.
