Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Message → Send DM
AI-generatedSummary
Send a direct message to a Discord user
Inputs
- targetUserId (required) — Discord user ID to send DM to
- content — Message content to send in the DM
- embed — Embed object in JSON format to include with the message
Output shape
object
Returned only after successful delivery. Contains metadata about the sent message. If the target user ID is invalid or the user cannot be fetched, the operation throws an error (unless continueOnFail is set).
Examples
Example 1: Send a simple DM to user ID 123456789
targetUserId: '123456789', content: 'Hello from n8n!'