# Message Edited

> Triggers when a message is edited.

- ID: `message_update`
- Type: Event trigger
- Category: [Messages](https://inventor.bot/docs/reference/triggers/messages.md)

> Message content will be empty without message content intent. Previous message content may be unavailable without message cache. Does not trigger for bot messages.

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `content` | The content of the message after edit | e.g. `"Hello world!"` |
| `message_id` | The unique ID of the message | e.g. `"123456789012345678"` |
| `channel_id` | The ID of the channel where the message was sent | e.g. `"123456789012345678"` |
| `author_id` | The ID of the user who sent the message | e.g. `"123456789012345678"` |
| `server_id` | The ID of the server where the message was sent | e.g. `"123456789012345678"` |
| `user_mentions` | Comma-separated list of mentioned user IDs | e.g. `"123456789012345678,987654321098765432"` |
| `role_mentions` | Comma-separated list of mentioned role IDs | e.g. `"123456789012345678,987654321098765432"` |
| `message_sent_at` | Unix timestamp when the message was sent | e.g. `"1640995200"` |
| `message_edited_at` | Unix timestamp when the message was edited | e.g. `"1640995800"` |
| `previous_content` | Content of the message before it was edited | e.g. `"Hi world!"` |
| `message_cache_hit` | Whether the previous message content was retrieved from cache | e.g. `"true"` |

**Example**

```go
var trigger = message_update()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Message Content: " + trigger.content,
	})
}
```