To check whether user is connected to voice channel or not (only cached users)
$isConnected[User ID]
$isbot $isDeafened