$DM Premium ONLY!

Sends the output of your code directly to the author via Discord Direct Message (DM), or to the specified user ID's DM.

Usage: $dm[userID (optional)]

Explanation:

  • The $DM function is used to send the result of the preceding code to a user's DM.
  • If no userID is provided, the message will be sent to the author of the command.
  • If a userID is provided, the message will be sent to the user with that ID.

Example:

Command Input:

!!exec $DM[$authorID] This is a fantastic message!
Member07/28/2026
!!exec $DM[$authorID] This is a fantastic message!

Result (Sent to the Command Author's DM):

Your Custom Bot Bot 07/28/2026
This is a fantastic message!

Related Functions

  • $sendDM: Send the output of the console to a DM message. (More control over the DM)
  • $channelSendMessage: Send a message to a specific channel in the server.
  • $sendMessage: Send a message to the channel where the command was used.

Difficulty: Medium

Tags: Send Message DM Send DM Message

⏱️ Function Cooldown

This function has a built-in cooldown to help prevent excessive usage.

PropertyValue
⏱️ Duration2 seconds
🆔 Tracked ByUser
🌐 ScopeChanneluser

Functions with the same Scope share cooldowns based on the same Tracked By value.

💎 Tier 3+ servers bypass this cooldown. See Premium Perksopen in new window.