Open
Description
Description
When a bot is connected to a voice channel by itself (no other users in channel), using the "Disconnect" context menu option (voice kick) results in the wrong close code being sent.
We expect the code to be 4014, which is also what we receive when another user is connected to the channel with the bot.
Steps to Reproduce
- Connect to voice channel with the bot (no other members in channel)
- Use "Disconnect" in the Discord Client
- Observe close code 4022 (undocumented) instead of 4014 (Disconnected)
Expected Behavior
The websocket should always be closed with 4014 when the bot is being kicked from the channel.
Current Behavior
The close code is 4022 instead.
Screenshots/Videos
No response
Client and System Information
Audio gateway version 8
Desktop client:
stable 402402 (98c518e) Host 1.0.9192 x64 (63861) Build Override: N/A Windows 11 64-bit (10.0.26100)