Skip to content

$globalUserLeaderBoard

$globalUserLeaderBoard will return a leaderboard of a global user variable.

Usage

$globalUserLeaderBoard[variable;type?;custom?;list?;page?;table?]

Parameters

FieldTypeDescriptionRequired
variablestringVariable name.true
typestringIn which order it will be returned
1. asc (ascending / default)
2. dsc (descending)
false
custom?stringFormatting.false
list?numberHow many to list.false
page?numberWhich page to list.false
table?stringVariable table.false
OptionsReturns
{top}numberReturns the position of the user.
{username}stringReturns the username.
{tag}stringReturns the username and discriminator.
{id}numberReturns the user ID.
{value}numberReturns the variable value.

Example(s)

This will returns a leaderboard of the “Example” variable:

1
client.command({
2
name: "globalUserLeaderBoard",
3
code: `
4
$globalUserLeaderBoard[Example;asc;{top} - {username} - {value};10;1;main]
5
`
6
});