DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
Functions
Action
$abbreviate
$addCmdReactions
$addCooldown
$addEmoji
$addMessageReactions
$addReactions
$api
$awaitCmdReactions
$awaitMessages
$awaitReactions
$ban
$blackList
$blackListRoles
$bold
$botLeave
$channelSendMessage
$clear
$cloneChannel
$codeblock
$codeblockMessage
$colorRole
$convertFromBytes
$convertToBytes
$createChannel
$createFile
$createRole
$createWebhook
$customCommand
$deleteChannels
$deletecommand
$deleteEmojis
$deleteIn
$deleteMessage
$deleteRole
$deleteSplitText
$deleteWebhook
$disableMentions
$divide
$djsEval
$dm
$editIn
$editMessage
$editSplitText
$emojiToID
$eval
$exec
$extractAmount
$filter
$giveRole
$globalBan
$haste
$italic
$kick
$let
$massRole
$messagePin
$messageUnpin
$modifyChannel
$modifyChannelPerms
$modifyEmoji
$modifyRole
$modifyRolePerms
$modifyWebhook
$multi
$parseFromMS
$parseToMS
$power
$reboot
$removeAllReactions
$removeReactions
$repeat
$replaceText
$replyIn
$revokeInvite
$round
$roundDown
$roundUp
$sendCrosspost
$sendCrosspostDM
$sendWebhook
$setBotAvatar
$setBotName
$setChannelName
$setChannelPosition
$setChannelTopic
$setEmojiName
$setGuildIcon
$setGuildName
$setNickname
$setRolePosition
$setSlowMode
$setStatus
$shutdown
$splitContent
$spoiler
$squareRoot
$strikethrough
$sub
$sum
$takeRole
$tempActivity
$truncate
$tts
$unban
$useChannel
$vcKick
$vcMove
Compacts
Conditions
Data
Embeds
Limiters
Music
Variables
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
$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:
bot.Command({
name: "dm",
code: `
hi, this is a test in your DMs!xD
$dm
`
})
​
Example 2:
bot.Command({
name: "dm",
code: `
This is the response in the channel where the command is executed (optional).
$dm[$authorID;hi, this is a test in your DMs!xD]
`
})
Previous
$djsEval
Next
$editIn
Last modified
11mo ago
Copy link
Outline
Properties: