Skip to content

$findUser

$findUser will attempt to find a user which is matching with the given query.

Usage

$findUser[userResolver;returnSelf?]

Parameters

FieldTypeDescriptionRequired
userResolverstringQuery which is used to find the user.true
returnSelf?booleanWill return the user ID of the user who executed the command when user was not found.false

Example(s)

This will search for a user called Ferel, if it wont find the user then it’ll return the command author’s user ID:

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