arikawa icon indicating copy to clipboard operation
arikawa copied to clipboard

v3: voice: interrupted connection if user moves the bot to another channel

Open diamondburned opened this issue 3 years ago • 0 comments

This issue is a follow-up on #238 and its PR #241.

Right now, voice is implemented so that it is reconnected when either a VoiceServerUpdateEvent or a VoiceStateUpdateEvent arrives from the main gateway. This is actually incorrect, and the bot should wait for both before reconnecting.

Since it only handles one of those events, at the point of reconnection, the information given to the server is invalid, so the connection cannot be resumed and everything is interrupted.

diamondburned avatar Jan 19 '22 05:01 diamondburned