$rawLeaderboard
$rawLeaderboard
will return a leaderboard of the given type.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
variable | string | Variable name. | true |
type | string | Variable type 1. globalUser 2. user 3. server 4. channel | true |
order | string | In which order it will be returned 1. asc (ascending / default) 2. dsc (descending) | true |
custom? | string | Formatting. | false |
list? | number | How many to list. | false |
page? | number | Which page to list. | false |
table? | string | Variable table. | false |
Options | Returns | |
---|---|---|
{top} | number | Returns the position of the user. |
{name} | string | Returns the username. |
{tag} | string | Returns the username and discriminator. |
{id} | number | Returns the user ID. |
{value} | number | Returns the variable value. |
Example(s)
This will return a leaderboard of the “Example” variable: