Math & Text randomMention

$randomMention[]

Returns the mention (format <@id>) of a random user present on the server.

Syntax
$randomMention

$randomMention[]

The $randomMention[] function returns the formatted mention of a random user present on the server. The mention is in <@id> format, which creates a ping for the targeted user.

Syntax

$randomMention

Note: This function takes no parameters.

Return Value

The formatted mention (<@id>) of a random user on the server.

Difference with similar functions

Function Returns
$randomMention <@id> — clickable mention with ping
$randomUser id — raw ID
$randomUserID id — raw ID

Examples

Direct mention

$randomMention, you have been chosen randomly!

Winner announcement

$title[🎊 Prize draw]
$description[Congratulations $randomMention! You win the giveaway!]
$color[#FFD700]
$footer[Good luck to everyone for the next draw]

Random tag

Tag, it's your turn $randomMention!

Notes

  • The user receives a notification (ping) when mentioned.
  • Use $randomUserID[] if you do not want to ping the user.