Bot stops playing when rejoining another channel

My bot plays in channel1. He uses connection.disconnect() to leave a voice channel, but the connection still exists. After using connection.rejoin({ channelId: }) in order to join another voice channel, the bot doesn't play the sound of its subscribed player anymore. But the player is playing the music. What's the solution?
d.js toolkit16d 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! - Marked as resolved by OP
SirNuny16d ago
That's bringing me to the next issue: player.on(VoiceClient.AudioPlayerStatus.Idle will trigger when resubscribing, which causes an error because it triggers the same function as connection.on(VoiceClient.VoiceConnectionStatus.Ready at the same time.