Skip to content
Music clearQueue

$clearQueue[]

Removes every track still waiting in the queue and keeps the current track playing. Returns the number of tracks removed (0 when the queue was empty). Use $stopMusic to stop playback as well. Requires a configured music (Lavalink) service with an active player.

Syntax

bdfd
$clearQueue

Examples

Example

$description[Cleared $clearQueue track(s) from the queue.]

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.