$isUserDMEnabled
Returns `true` if the users DMs are open. Otherwise, the function returns `false`.

FUNCTION USAGE

  • $isUserDMEnabled
  • $isUserDMEnabled[]
  • $isUserDMEnabled[userID]

Properties:

[] - Leave the brackets empty for automatic DM status of command user. Same as no brackets. userID - Supply a user ID to return DM status of that user.
Example 1: Returns DM status of command user.
1
bot.Command({
2
name: "check",
3
code: `
4
$isUserDMEnabled
5
`
6
})
Copied!
Example 2: Type a user ID to return DM status of that user.
1
bot.Command({
2
name: "vc-position",
3
code: `
4
$isUserDMEnabled[$findUser[$message[]]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: