Music lavalinkQueueSize

$lavalinkQueueSize[]

Returns the number of tracks currently in the music queue

Syntax
$lavalinkQueueSize[]

Return Value

integer

The number of tracks waiting in the queue (not including the currently playing track)

Returns the number of tracks currently waiting in the music queue. This count does not include the track that is currently playing. Use this to display queue status or check if the queue is empty before adding more tracks.

Examples

Show queue size

$sendMessage[There are $lavalinkQueueSize[] tracks in the queue.]

Display queue status

$if[$lavalinkQueueSize[]>0]
$sendMessage[📋 Queue: $lavalinkQueueSize[] tracks waiting]
$else
$sendMessage[📋 The queue is empty.]
$endif

Warn when queue is large

$if[$lavalinkQueueSize[>=10]]
$sendMessage[Queue is getting long! $lavalinkQueueSize[] tracks queued.]
$endif