Skip to content
Music pauseMusic

$pauseMusic[]

Pauses the player of the server. The track can be resumed later with $resumeMusic. Takes no argument and returns an empty string. If the bot has no active player, nothing happens (no error). Requires a server and a configured music (Lavalink) service, otherwise an error is raised. Use $lavalinkIsPaused to check the current pause state.

Syntax

bdfd
$pauseMusic[]

Examples

Pause Playback with Resume Button

$pauseMusic
$title[Music Paused ⏸️]
$description[Audio playback has been paused by <@$authorID>.]
$color[#FEE75C]
$addButton[no;music_resume;Resume;success;▶️]

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.