$dm
Sends the message to the dms of the command author or dms of the given users' ID.

FUNCTION USAGE:

    $dm
    $dm[userID;msg]

Properties:

userID - Dm's the user of the defined ID. msg - The message to be sent to the user. Supports Embeds.
Breaking change: 3.3.1
    1.
    If function is defined with no brackets, the message will be sent to the command user.
    2.
    If function is defined with brackets, the 2nd field will be mandatory!
    3.
    Anything outside of the $dm function will be sent to the channel where the command was executed!

Example 1:

1
bot.Command({
2
name: "dm",
3
code: `
4
hi, this is a test in your DMs!xD
5
$dm
6
`
7
})
Copied!

Example 2:

1
bot.Command({
2
name: "dm",
3
code: `
4
This is the response in the channel where the command is executed (optional).
5
$dm[$authorID;hi, this is a test in your DMs!xD]
6
`
7
})
Copied!
Last modified 1mo ago
Copy link
Contents
Properties: