Overview
Control music playback with pause and resume commands. These commands allow you to temporarily halt playback and continue from where you left off.Pause Command
Pauses the currently playing music.Usage
Behavior
Examples
Implementation
Fromcommands/music/pause.js:4-14:
Resume Command
Resumes playback after pausing.Usage
Behavior
Examples
Implementation
Fromcommands/music/resume.js:4-16:
The resume command also acts as a toggle - it can pause if music is playing. However, the dedicated
r!pause command is clearer for this purpose.Requirements
Music must be currently playing
An active queue must exist
Error Messages
No Music Playing
Already Paused
Use Cases
Take a Break
Pause music during conversations or breaks
Answer Call
Quickly pause when you need to take a call
Announcement
Pause for important announcements in voice
AFK Moment
Pause when stepping away temporarily
State Management
Both commands use DisTube’s queue state management:queue.paused- Boolean indicating if playback is pausedqueue.pause()- Method to pause playbackqueue.resume()- Method to resume playback
Related Commands
r!stop- Completely stop playback and clear queue (cannot resume)r!skip- Move to next song instead of pausingr!play- Start playing music