# DM Message Sent

> Triggers when a direct message is sent to the bot.

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

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

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `content` | The content of the DM that was sent | e.g. `"Hello world!"` |
| `message_id` | The unique ID of the message | e.g. `"123456789012345678"` |
| `channel_id` | The ID of the DM channel | e.g. `"123456789012345678"` |
| `author_id` | The ID of the user who sent the DM | e.g. `"123456789012345678"` |
| `user_mentions` | Comma-separated list of mentioned user IDs | e.g. `"123456789012345678,987654321098765432"` |
| `message_sent_at` | Unix timestamp when the message was sent | e.g. `"1640995200"` |

**Example**

```go
var trigger = dm_message_create()

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