player.on(AudioPlayerStatus.Idle, async () => {} not emitting when the song finished

[email protected]
player.on(AudioPlayerStatus.Idle, async () => {}
player.on(AudioPlayerStatus.Idle, async () => {}
i am using this eventHandler to play next song. But its not emitting when a song finished. This problem started 3/4 days ago....
8 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
asocial-duck
asocial-duckOP2y ago
Anything on my side… everything is same on me. But i don’t know about discord, discordjs etc… i update the npm, nodejs, discordjs today because of the issue. But didnt worked 😦 my source code is same when it work only updated versions Yes but my player is working perfectly. Only the eventhandler don’t working Okay let me open the MacBook and vsc
asocial-duck
asocial-duckOP2y ago
asocial-duck
asocial-duckOP2y ago
currentIndex is that: yes, yes.... i tried a console.log and it didn't appeared on console 😦 4 days ago;
if a song finish, the idle eventHandler run.
now;
if a song finish, the player states not changing at the same time. The state is changing 30 seconds after a song is finished. And the interesting thing is that: it is not go to "idle" state. it is going to "autopaused" state.... never goes to "idle" state...
i wrote the ^ "now" section with the stateChange listener... i am using it already
player.on('stateChange', async (oldState, newState) => {
console.log(oldState, newState);
});
player.on('stateChange', async (oldState, newState) => {
console.log(oldState, newState);
});
this is my listener the console is running 30-40 second after a song finish
asocial-duck
asocial-duckOP2y ago
asocial-duck
asocial-duckOP2y ago
i get the stream with play-dl module from youtube it is the same stream before 3-4 days it was working perfectly what is it tos violations? oooow sorry i didn't know that there are a lot of bots getting the youtube streams... sorry again so could you help me if i change the stream? youtube isn't important for me the player is so important for me
asocial-duck
asocial-duckOP2y ago
asocial-duck
asocial-duckOP2y ago
i changed it with this but the song didn't start is it tos compliant ? yes of course no 😦 it doesn't play of course i have it. it was working perfectly 4 days ago as i said... i didn't understant what do you mean could you talk more clearly with me 😦 okay i fixed the problem thank you so much
Want results from more Discord servers?
Add your server