Skip to content

$getLeaderboardInfo

$getLeaderboardInfo will return information about a given variable sorted in a leaderboard.

Usage

$getLeaderboardInfo[variable;id;type;option;table?]

Parameters

FieldTypeDescriptionRequired
variablestringVariable name.true
idnumberUser/guild/channel/message ID.true
typestringVariable type
1. global
2. guild (default)
3. channel
4. message
true
optionstringOption to return
1. top
2. value
3. tag
4. username
true
table?stringThe database table to search in.false

Example(s)

This will return the position of the current guild:

1
client.command({
2
name: "getLeaderboardInfo",
3
code: `
4
$getLeaderboardInfo[Example;$authorId;guild;top]
5
`
6
});