Version 0.19.0 stuck in connecting state
Discord Voice Connection Stuck in "Connecting" State After @discordjs/voice v0.19.0 Upgrade
Setup:
• discord.js@14.21.0
• @discordjs/voice@0.19.0 (upgraded from 0.18.0)
• Deno runtime
• Bot has proper permissions and was working this morning
After upgrading from @discordjs/voice@0.18.0 to 0.19.0, voice connections get stuck in "connecting" state and never reach "ready". The bot successfully joins the voice channel but can't establish the audio connection.
Logs:
Code: Standard joinVoiceChannel() call with guild.voiceAdapterCreator. No errors thrown, just perpetually stuck connecting.
2 Replies
To debug your voice connection and player:
- Use
debug: true
when creating your VoiceConnection
and AudioPlayer
- Add an event listener to the <VoiceConnection> and the <AudioPlayer>:
- Add an error
listener to the stream you are passing to the resource:
Note: The <>
represents classes that need to be adapted to their respective name in your code