discord.com
Send Discord DM
Input
userId requiredThe recipient's Discord user id, e.g. from discord.com/find_member_id or the author.id of discord.com/search_messages.
message requiredThe message text. Discord's own limit is 2000 characters.
expectedUsername requiredThe 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 optionalWhen true, the recipient is checked and the conversation opened, then the run stops before typing: nothing is sent, sent comes back false.
Output
sent requiredFalse on a dry run.
channelId requiredThe one-to-one DM channel.
recipient requiredThe recipient's username as Discord returned it for that id, not echoed from the input.
content optionalThe content as Discord stored it. Null on a dry run.
dry_run optionalmessageId optionalNull on a dry run.
timestamp optional