Skip to content

$isDM

$isDM will check if the given channel is a DM or not.

Usage

$isDM[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of the channel that you want to check.false

Example(s)

This will return either true or false depending on if you’re executing the command in a DM or not:

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