Skip to content
Music lavalinkPosition

$lavalinkPosition[]

Returns the current playback position of the current track in milliseconds, as a plain number. Combined with $lavalinkDuration (also in milliseconds), you can build progress bars and time displays. Takes no argument. Returns 0 if there is no active player.

Syntax

bdfd
$lavalinkPosition[]

Examples

Current Track Progress

$title[Track Progress]
$description[Current position: `$lavalinkPosition` / `$lavalinkDuration`]
$color[#AEEA00]

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.