$username

Returns a user's username.

Usages

There are two usages of this function :

Usage #1

Syntax

$username

Returns the username of the user who triggered the command.

Example

$nomention
Hello $username!

example1

Usage #2

Syntax

$username[User ID]

Returns the username of a specific user given its ID.

Parameters
  • User ID : The user to get the username for.

Example

$nomention
$username just hugged $username[$mentioned[1]]!

example2