Music
lavalinkIsLooping
$lavalinkIsLooping[]
Returns "true" if looping is currently enabled, "false" otherwise
Syntax
$lavalinkIsLooping[]
Return Value
boolean
"true" if the player is looping (track or queue), "false" otherwise
Returns “true” if the music player has looping enabled (either track loop or queue loop). Returns “false” if loop mode is off. Use $setMusicLoop to change the loop mode.
Examples
Check loop state
$if[$lavalinkIsLooping[==true]]
$sendMessage[🔁 Looping is enabled.]
$else
$sendMessage[➡️ Looping is disabled.]
$endif
Toggle looping
$if[$lavalinkIsLooping[==true]]
$setMusicLoop[off]
$sendMessage[🔁 Looping disabled.]
$else
$setMusicLoop[track]
$sendMessage[🔁 Looping enabled!]
$endif
Display player status
$sendMessage[Paused: $lavalinkIsPaused[] | Looping: $lavalinkIsLooping[]]