$username
Returns the username of the user who executed the command, or the username of a specific member.
Usage:
$username[userid (optional, default=$authorID)]
userid
(optional): The ID of the user you want to retrieve the username from. If omitted, it defaults to the ID of the command author ($authorID
).
Example:
!!exec $username
Result:
Member (Assuming the command was executed by a user named "Member")
Related Functions
$nickname
: Retrieves the current nickname of a member.$discriminator
: Retrieves the discriminator (the four-digit number after the username, e.g., #1234) of a member.$userTag
: Returns the member's username and discriminator (e.g., Username#1234).