Skip to content
Send Dm Ai

$sendDM

Sends the output of the code to the message author’s DMs or to the DMs of a specified user.

Usage: $sendDM[userID;message]

  • userID: (Optional) The ID of the user to send the DM to. If omitted, the DM will be sent to the message author.
  • message: The message to send in the DM.

Example 1: Sending a DM to the message author multiple times.

!!exec $sendDM[$authorID;I can add this multiple times in my code! This is time 1] $sendDM[$authorID;I can add this multiple times in my code! This is time 2]
I can add this multiple times in my code! This is time 1 I can add this multiple times in my code! This is time 2

::: tip Note You can send embeds using the Message Curl Format. This allows you to create richly formatted messages within the DM. :::

::: tip Related Functions

Function Difficulty:
Tags: