$isUserDMEnabled

Checks if the user has DMs open, returns true or false

Usage

$isUserDMEnabled or $isUserDMEnabled[userID]
1