$guildLeaderboard
$guildLeaderboard will return a leaderboard of a guild variable.
Usage
$guildLeaderboard[variable;type?;custom?;list?;page?;table?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| variable | string | Variable name. | true |
| type | string | In which order it will be returned 1. asc (ascending / default) 2. dsc (descending) | false |
| 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 user position of the guild. |
| {name} | string | Returns the user name. |
| {id} | number | Returns the guild ID. |
| {value} | number | Returns the variable value. |
Example(s)
This will returns a leaderboard of the “Example” variable:
1client.command({2 name: "guildLeaderboard",3 code: `4 $guildLeaderboard[Example;asc;{top} - {name} - {value};10;1;main]5 `6});