#help on finish

6 messages · Page 1 of 1 (latest)

fallen hedge
#

is here any event when player finish?? i want to stop player after of finish

slate hornet
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

maiden portal
#

Check the last three lines (13-15)

#

player.on(AudioPlayerStatus.Idle, () => { // Your code here });

AudioPlayerStatus is a tiny class filled with audio events, one of them being "Idle", which basically can be translated to "not playing".

#

And AudioPlayerStatus.Playing fires once it starts playing as it often takes a little time to actually start playing. I think those are the most important ones