users_create_dm
Opens or fetches a DM channel with a user, returning a channel ID to send private messages through Discord.
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.
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 | |||