$getLeaderboardPosition

Get position in leaderboard for given variable.

Syntax

$getLeaderboardPosition[Variable type;Variable name;Sort type;(User ID)]

Parameters

  • Variable type (Type: Enum || Flag: Required): The type of the variable. Variable types:
  • Variable name (Type: String || Flag: Required): The variable name to generate the leaderboard for.
  • Sort type (Type: Enum || Flag: Required): The sort type. Sort types:
    • asc - Sorts the values in ascending order.
    • desc - Sorts the values in descending order.
  • User ID: (Type: Snowflake || Flag: Optional): ID of the user from whom you want to get a position in the leaderboard.

Example

$nomention
My position in leaderboards: $getLeaderboardPosition[user;Coins;desc]
!example My position in leaderboards: 2