generate a leaderboard of a user variable and return it

Usage: $userLeaderboard[variable;asc/desc (optional);{top}.- {username} - {value};list (optional, max=40);page (optional)]

Available Variables:

{top}returns the rank number
{value}returns the numerical value of the variable
{raw_value}returns the raw value in case it's not number
{id}returns the user id
{mention}returns the user mention
{username}returns the username
{nickname}returns the nickname
{tag}returns the tag like Mido#1234
{discriminator}returns the discriminator like 1234


  • desc: Rank is sorted from big to small numbers
  • asc: Rank is sorted from small to big numbers


To use this function your uservar must have nummeric values .

!!exec $setUserVar[money;100]
!!exec $userLeaderboard[money;asc;{top}.- {username} - {value}]
Custom Command Bot 11/22/2023
1.- Mido - 100

Related Functions

Check out: $setUserVar

Check out: $getUserVar

Check out: $deleteUserVar

Check out: $resetUserVar