Functionalities
Functions
Data
Other
$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.

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

Example 2: Returns the ID of a variable user.

bot.Command({
name: "test",
code: `
$message[]'s ID is: $userID[$message[]]
`})

Example 3: Returns the command author's ID.

bot.Command({
name: "test",
code: `
$username[$userID]'s ID is: $userID
`})
Copy link
Outline