$randomMention

Returns a random mention from the current server. This function is useful for things like raffles, giveaways, or randomly selecting a user.

Usage:

$randomMention

Example:

This example shows how to use $randomMention to mention a random user in a command.

Member04/04/2025
!!exec $randomMention
Custom Command Bot 04/04/2025
@Lisa

Warning

The mentions returned by this function are pulled from the server's cached member list. This means that if all members haven't been cached yet (common in larger servers, especially those below "Tier 5" boosting), it may not include every member in the server. For best results, ensure your bot has access to all members.

Function Difficulty: Easy
Tags: random random mention choose mention