$username

Returns the username of the given user.

Usage

$username[userID]
  1. userID - (Optional) default value: $authorID. The ID of a user you want to return nickname from.

Example

Using $nickname

How to use $nickname

User04/23/2025
!!exec $nickname
Custom Command Bot 04/23/2025
User

Cache

This function works on the bot's cache to find members. If the user is not cached, the function will not find them. User will be cached after they trigger any command from this bot, but eventually they will get deleted.
To have all members cached, you will need Tier 5 Bot.

Function difficulty: Easy
Tags: name username nickname Names userID