Skip to content
Database getChannelLeaderboardValue

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

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

Syntax

$getChannelLeaderboardValue[name;sortType;(id);(guildID)]

Parameters

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

Return Value

  • Number.

Usage

$getChannelLeaderboardValue[name;sortType;id;guildID] → result

Example

$sendMessage[$getChannelLeaderboardValue[name;sortType;id;guildID]]

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.