Player state changes to "playing" when resource ends
Whenever I play a resource, I need to be able to detect when said resource stops playing in the player I play it with.
However, whenever the resource ends, the player rattles off "playing" status.
4 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- 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!Here's code
Every time a resource ends, "playing" is logged
even though it is supposed to log "stopped"
or something to that effect
It logs "buffering" when the player starts playing, and "playing" when the resource ends
:class: AudioPlayer
@0.17.0
Used to play audio resources (i.e. tracks, streams) to voice connections.Ah
I just discovered that digging thru the code
Thanks