# Send or Edit Embed Message

> Send or edit an embed message.

- ID: `send_embed_message`
- Type: Block
- Category: [Messages](https://inventor.bot/docs/reference/blocks/messages.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of channel to send message to. |  |
| `edit_message_id` |  | If you wish to edit a message instead of sending a new message, provide a message ID. |  |
| `reply_to_message_id` |  | If you wish to reply to a message, provide the ID of the message you wish to reply to. This does not work with editing messages. |  |
| `allow_mentions` |  | Choose which mention types should notify users. Empty or None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging. | `"None"`, `"Everyone/Here"`, `"Roles"`, `"Users"` |
| `content` |  | Plain text shown above the embed container. |  |
| `title` |  | Heading text shown inside the embed container. |  |
| `description` |  | Description text shown inside the embed container. |  |
| `thumbnail_image_url` |  | Thumbnail shown beside the embed section. |  |
| `color` |  | Hexadecimal color code for the embed accent bar. | e.g. `"#0099ff"` |
| `image_url` |  | Large image shown below the embed section. |  |
| `footer_text` |  | Small footer text shown at the bottom of the embed section. |  |
| `buttons` |  | Up to 25 buttons. They are automatically grouped into action rows. | blocks: `func() { ... }` with only `advmsgcmp_interaction_button*` blocks |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `message_id` | ID of the sent or edited message |  |

**Example**

```go
embedMessage := send_embed_message(Args{channel_id: trigger.channel_id})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + embedMessage.message_id,
})
```

## Blocks inside

These blocks can only be placed inside this one:

- [Button](https://inventor.bot/docs/reference/blocks/advanced-messages/advmsgcmp-interaction-button.md) (`advmsgcmp_interaction_button`), in `buttons`