# Create DM Channel

> Create a DM channel with a user.

- ID: `create_dm_channel`
- Type: Block
- Category: [Users](https://inventor.bot/docs/reference/blocks/users.md)

> Avoid opening DMs in bulk; Discord may rate limit or block the bot.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `user_id` | yes | ID of the user to create a DM channel with. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `channel_id` | ID of the created DM channel. |  |

**Example**

```go
dmChannel := create_dm_channel(Args{user_id: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Channel ID: " + dmChannel.channel_id,
})
```