Skip to content

feat(errors): add more voice disconnect reasons #1298

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

Merged
merged 5 commits into from
Jul 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion disnake/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@ class ConnectionClosed(ClientException):
4006: "Session no longer valid",
4011: "Server not found",
4012: "Unknown protocol",
4014: "Disconnected, channel was deleted, you were kicked, voice server changed, or the main gateway session was dropped.",
4014: "Disconnected (you were kicked, the main gateway session was dropped, etc.)",
4015: "Voice server crashed",
4016: "Unknown encryption mode",
4020: "Bad request - you sent a malformed request",
4021: "Disconnected: Rate Limited",
4022: "Disconnected: Call Terminated (channel deleted, voice server changed, etc.)",
}

def __init__(
Expand Down
Loading