Math & Text randomUser

$randomUser[]

Returns the ID or mention of a random user present on the server.

Syntax
$randomUser

$randomUser[]

The $randomUser[] function returns the ID of a random user present on the server where the command is executed.

Syntax

$randomUser

Note: This function takes no parameters.

Return Value

The Discord ID (snowflake) of a random user on the server, as a string.

Examples

Mention a random user

Random user: <@$randomUser>

Announce a winner

$title[🎉 Prize draw]
$description[Congratulations <@$randomUser>! You won!]
$color[#FFD700]

Get the ID only

Random ID: $randomUser

Notes

  • The selected user is a member of the server.
  • The bot must have access to the member list for this function to work correctly.
  • To get only the ID without formatting, use $randomUserID[].
  • For a direct mention (with the <@id> format), use $randomMention[].