Custom Command
FunctionsMessage Functions

$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!
Member
9/5/2026
!!exec $dm[$authorID] This is a fantastic message!

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

Custom Bot
APP
9/5/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 built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 2 seconds
  • Tracked By: User
  • Type: channeluser

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

On this page