forcefully stopping player

hey i just wanted to know if theres a way to forcefully stop playing a resource for example
player.play(createAudioResource(audioPath));
player.play(createAudioResource(audioPath));
3 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
six
sixOP11mo ago
and is there a way to pause / resume
d.js docs
d.js docs11mo ago
method AudioPlayer#stop() Stops playback of the current resource and destroys the resource. The player will either transition to the Idle state, or remain in its current state until the silence padding frames of the resource have been method AudioPlayer#pause() Pauses playback of the current resource, if method AudioPlayer#unpause() Unpauses playback of the current resource, if any.
Want results from more Discord servers?
Add your server