$userLeaderBoard
This will return the position of the leaderboard
Parameters
| Field | Description |
|---|---|
| channelId | Chat id for leaderboard |
| variable | Variable name |
| typeLeader | In which order it will be returned 1. asc (ascending / default) 2. dsc (descending) |
| custom | Formatting (optional) |
| list | How many to list (optional) |
Options
topidfirst_nameusernametypevaluelast_namelanguage_codebio
Examples
<AoiClient>.addCommand({
name: "userLeaderBoard",
code: `
$sendMessage[$chatLeaderBoard[$chatId;examples;;{top}. {first_name} - {value} ⏳️\n;10]]
`,
});