Discord User icon

Discord User

Complete Discord automation - Messages, Servers, Roles, Members, DMs

Message → Send DM

AI-generated

Summary

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!'

Discussion