Bot Voice Connection Issues

I recently have gotten reports from users about my bot having issues staying connected to the voice channel in specific communities. More specifically, a yellow exclamation point appears on the bot in the voice channel and flickers in and out, indicating that the bot is having trouble staying connected. Furthermore, most likely as a result from this connection problem, the bot will end up repeating audio which I've told it to play (usually it repeats it once instead of just playing it once). Sometimes it will not play audio at all. The behavior is usually that it will join and play the audio successfully the first time, and then fail to play or repeat the playing of the message when the audio is played the second time. I've tried having the users in the affected community change the voice region to be closer to the bots hosting provider and also closer to their own location. Despite this, the issue persists and I am not able to replicate the problem in my own Discord community (even when switching voice regions, etc). Any advice?

Dependency Report:
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.18.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.10.0
- opusscript: not found

Encryption Libraries
- sodium-native: 5.0.6
- sodium: not found
- libsodium-wrappers: not found
- @stablelib/xchacha20poly1305: not found
- @noble/ciphers: not found

FFmpeg
- version: 6.0-static https://johnvansickle.com/ffmpeg/ 
- libopus: yes
--------------------------------------------------
image.jpg
Was this page helpful?