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:

3 Replies
Well I think I may have resolved the issue. It looks like an extra cluster was created by the cluster manager I use which essentially duplicated a group of shards. So when a command was run to play something in the voice channel, both processes would try to join the voice channel to play the audio. This is the equivalent of if you started the Discord bot twice when not using shards. This seems to have caused the connection problem as the two processes were basically both fighting for the connection.
The thread owner has marked this issue as solved.