Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Message → Send DM
AI-generatedSummary
Sends a direct message to a specific Discord user via their user ID.
Inputs
- targetUserId (required) — Discord user ID to send DM to.
- content — The text content of the message.
- embed — Embed object in JSON format.
Output shape
A single record containing the sent message details.
Includes messageId, channelId, userId, content, createdAt, and isDM.
Examples
Example 1: Send a direct message to a user identified by their numeric ID.
Target user ID set to 123456789, content set to 'Hello world'.