$userExists
Returns `true` if the ID of the user exists in Discord. Otherwise, the function returns `false`.

FUNCTION USAGE

  • $userExists[userID]

Properties:

userID - The user being checked for.

Example 1:
1
bot.Command({
2
name: "userexist",
3
code: `
4
$userExists[$mentioned[1]]
5
`
6
})
Copied!
Example 2:
1
bot.Command({
2
name: "whois",
3
code: `
4
$onlyIf[$userExists[$findUser[toLowercase[$message[]]]]==true;That user does not exist sorry]
5
6
blah, blah, blah your code and stuff xD
7
`
8
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: