$userID

Returns a user ID based on the given username.

Usage

$userID[username]
  1. username - (Optional) if not provided, $authorID will be returned. The username of a user you want to return ID of.

Example

Using $userID

How to use $userID

User04/23/2025
!!exec $userID[user]
Custom Command Bot 04/23/2025
123456789123456789

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: user Member ID User ID Username