Skip to content
Database getUserLeaderboardID

$getUserLeaderboardID — Returns the ID of the user at a position of the leaderboard of a variable.

Returns the ID of the user at a position of the leaderboard of a variable.

Syntax

$getUserLeaderboardID[name;sortType;position]

Parameters

  • name (String, required) — Variable name
  • sortType (String, required) — asc or desc (default desc)
  • position (Number, required) — Position, from 1

Return Value

  • String.

Usage

$getUserLeaderboardID[name;sortType;position] → result

Example

$sendMessage[$getUserLeaderboardID[name;sortType;position]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.