users_create_dm
Open or fetch a direct-message channel with a Discord user so you can send private messages; repeat calls return the same channel ID.
Instructions
Purpose: Open (or fetch) a DM channel between the bot and a user (POST /users/@me/channels).
When to use: - Send a private message to a user - Discord requires a DM channel id first.
Idempotent: repeat calls return the same DM channel id.
Note: User-scoped endpoint - does NOT accept audit_reason.
Returns: {channel_id, type, recipient_ids}. Use channel_id with messages_send to deliver the DM.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipient_id": "<recipient_id>"
},
"name": "users_create_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| __consent | No | Explicitly approve contacting this recipient | |
| __consent_id | No | One-time consent approval ID returned by the preview | |
| recipient_id | Yes | User to DM | |
| __consent_hash | No | SHA-256 hash returned by the consent preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||