Skip to content
Database getGuildLeaderboardValue

$getGuildLeaderboardValue — Returns the position of a guild in the leaderboard of a variable (0 when absent).

Returns the position of a guild in the leaderboard of a variable (0 when absent).

Syntax

$getGuildLeaderboardValue[name;sortType;(id)]

Parameters

  • name (String, required) — Variable name
  • sortType (String, required) — asc or desc (default desc)
  • id (String, optional) — Guild ID (default current)

Return Value

  • Number.

Usage

$getGuildLeaderboardValue[name;sortType;id] → result

Example

$sendMessage[$getGuildLeaderboardValue[name;sortType;id]]

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.