Skip to content

$isUserDmEnabled

$isUserDmEnabled will check if the user’s Direct Messages are either disabled or enabled.

Usage

$isUserDmEnabled[userID]

Parameters

FieldTypeDescriptionRequired
userIDnumberID of the user you want to check if their dms are enabled or not.true

Example(s)

This will return either true or false depending on if your Direct Messages are enabled or disabled:

1
client.command({
2
name: "isUserDmEnabled",
3
code: `
4
$isUserDmEnabled[$authorID]
5
`
6
});