Skip to content

Voice disconnecting a bot results in incorrect close code #7575

Open
@MinnDevelopment

Description

@MinnDevelopment

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

  1. Connect to voice channel with the bot (no other members in channel)
  2. Use "Disconnect" in the Discord Client
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions