App Logo
discord.com

Send Discord DM

Automatically send Discord DM on discord.com. Send a direct message to a Discord user, addressed by their username. Opens (or reuses) the one-to-one DM conversation and posts the message there. Returns sent, the created message's messageId, the DM channelId, timestamp, and the content as Discord stored it, plus the recipient's resolved handle so the message is provably not sent to a near-name match. This is a write and the recipient is notified: confirm the exact recipient and text with the user before running, and note that approval for one message does not carry over to another.

Input

userId required

The recipient's Discord user id, e.g. from discord.com/find_member_id or the author.id of discord.com/search_messages.

message required

The message text. Discord's own limit is 2000 characters.

expectedUsername required

The recipient's username, checked against the one Discord returns for that id before anything is typed. A mismatch stops the run without sending.

dry_run optional

When true, the recipient is checked and the conversation opened, then the run stops before typing: nothing is sent, sent comes back false.

Output

sent required

False on a dry run.

channelId required

The one-to-one DM channel.

recipient required

The recipient's username as Discord returned it for that id, not echoed from the input.

content optional

The content as Discord stored it. Null on a dry run.

dry_run optional
messageId optional

Null on a dry run.

timestamp optional

FAQ

Send a direct message to a Discord user, addressed by their username. Opens (or reuses) the one-to-one DM conversation and posts the message there. Returns sent, the created message's messageId, the DM channelId, timestamp, and the content as Discord stored it, plus the recipient's resolved handle so the message is provably not sent to a near-name match. This is a write and the recipient is notified: confirm the exact recipient and text with the user before running, and note that approval for one message does not carry over to another.
Ask an AI agent connected to Reduck to run reduck/discord.com/send_dm, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/discord.com/send_dm
You do not need one. "Send Discord DM" drives the real discord.com pages in a browser, so it works whether or not discord.com offers an API for this.
Required: userId, expectedUsername, message. Optional: dry_run.
It returns sent, content, dry_run, channelId, messageId, recipient, timestamp.
Yes. It acts as you on discord.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the discord.com cookies saved by the Reduck extension.
It makes changes on discord.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/discord.com/send_dm, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/discord.com/send_dm
It is part of Reduck's official curated catalogue.

Start building not clicking