Functionalities
Other
$username
Returns the username of the command author or the defined user ID.

FUNCTION USAGE

  • $username
  • $username[]
  • $username[userID]

Properties:

[] - Leave brackets empty to return the username of the command author. userID - The ID of the user to return the username of.

Example 1: Returns the username of the command author.

1
bot.Command({
2
name: "user",
3
code: `
4
$username
5
`
6
})
Copied!

Example 2: Returns the username of the specific user.

1
bot.Command({
2
name: "user",
3
code: `
4
$username[7645354938798479334]
5
`
6
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: