help on finish
is here any event when player finish?? i want to stop player after of finish
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Check the last three lines (13-15)
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
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 onesFull list here:
https://discordjs.guide/voice/audio-player.html#life-cycle
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.