New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voice WebSocket Connection closed with 4014 when switching voice channels #2450
Comments
If you carefully read the logs you show in your video, you can tell that this is not true. Bigger servers do not use the same voice server for all channels. The connection is closed because the server is changing. Making a new close code would be breaking for existing implementations, such as JDA which rely on the current behavior. |
I have updated my issue to the previous version, but I did not realize that the voice server changed (I was looking at the wrong IP). Thanks for clarification 👍
I surely agree with that, but I think that documenting this behavior (which was my original intention for this issue) should be done because I think it is confusing that a |
this will be documented for the close code in the next docs deploy |
Why should not reconnect after voice server changed?
|
You can teach your bot to reconnect to the voice channel when the voice server is changed. My guess (I haven't used the voice API before) is that this feature isn't provided by the API because transparently reconnecting in the backend is not possible — your client needs to connect to a different voice endpoint. |
kick and voice server change have same code, if try reconnect it will rejoin voice channel after kick. |
Description
On some servers, the Voice WebSocket connection is closed with
4014 Disconnected
when the bot is moved around in voice channels. The discord app also receives the same close code on these servers. I think that we should either document that the close code4014 Disconnected
is used for server changes, or discord could introduce a new close code.Steps to Reproduce
Expected Behavior / Alternatives considered
4014 Disconnected
when the voice server changes.4017 Switching voice server
).Current Behavior
4014 Disconnected
when switching voice channels.Why is this needed
VOICE_SERVER_UPDATE
payload to decide whether the connection handle should be freed or reused.Screenshots/Videos
Discord.2021-01-04.10-49-49.mp4
Client and System Information
Stable 73806 (0c3eadc)
Host 0.0.309
Windows 10 64-Bit (10.0.19042)
The text was updated successfully, but these errors were encountered: