Functionalities
Other
Powered By GitBook
$guildLeaderboard
Shows a leaderboard of guilds for the specified variable in either an ascending or descending state.
Leaderboards only show number values. Therefore, the variable must be a number value

FUNCTION USAGE

    $guildLeaderboard[variable]
    $guildLeaderboard[variable;asc;placeholders]
    $guildLeaderboard[variable;desc;placeholders]

Properties:

variable - The variable to display a leaderboard of. asc - Returns the data in an ascending state, from highest on top. desc - Returns the data in a descending state, from lowest on top. placeholders: {top} - The value sitting in 1st place whether asc or desc {value} - The variables value. {username} - The username associated with that stat. {id} - The users ID associated with that stat. {tag} - The users tag associated with that stat.
Example 1: Numbers will show from the highest numbers first
1
bot.Command({
2
name: "leaderboard",
3
code: `
4
$guildLeaderboard[xp;asc]
5
`
6
})
Copied!
Example 2: Numbers will show from the lowest numbers first
1
bot.Command({
2
name: "leaderboard",
3
code: `
4
$guildLeaderboard[xp;desc]
5
`
6
})
Copied!
Example
Usages
Responses
1
?leaderboard
1 - server1- "1500"
2 - server2- "800"
3 - server3- "200"
2
?leaderboard
1 - server3- "200"
2 - server2- "800"
3 - server1- "1500"
Last modified 3mo ago
Copy link
Contents
Properties: