Functionalities
Other
Powered By GitBook
$userID
Returns the ID of the user by the defined username.
FUNCTION USAGE
    $userID
    $userID[]
    $userID[name]

Properties:

[] - Leave brackets empty to return the command author's ID. Same as no brackets. name - Define a user's name (not nickname) to return the ID of that user.
No brackets will return the command author's ID. Same as $authorID for diversity!
it won't work if you give an invalid username.

Example 1: Returns the ID of the specific user.

1
bot.Command({
2
name: "test",
3
code: `
4
This is the User ID of Speshul#2695!: $userID[Speshul#2695]
5
`})
Copied!

Example 2: Returns the ID of a variable user.

1
bot.Command({
2
name: "test",
3
code: `
4
$message[]'s ID is: $userID[$message[]]
5
`})
Copied!

Example 3: Returns the command author's ID.

1
bot.Command({
2
name: "test",
3
code: `
4
$username[$userID]'s ID is: $userID
5
`})
Copied!
Last modified 3mo ago
Copy link