From a8886a1529fc517599c0f43039d689240cb080c2 Mon Sep 17 00:00:00 2001 From: Jiggly Balls Date: Tue, 23 Jun 2026 20:32:34 +0530 Subject: [PATCH 1/5] Fixed LavalinkException docs attribute name --- docs/wavelink.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wavelink.rst b/docs/wavelink.rst index 73eaf0ba..da5374dd 100644 --- a/docs/wavelink.rst +++ b/docs/wavelink.rst @@ -475,7 +475,7 @@ Exceptions ---------- status: int The response status code. - reason: str | None + error: str | None The response reason. Could be ``None`` if no reason was provided. .. py:exception:: LavalinkLoadException From 5c0538c30e151198275e626e5df1e89423360c7b Mon Sep 17 00:00:00 2001 From: Jiggly Balls Date: Tue, 23 Jun 2026 20:35:35 +0530 Subject: [PATCH 2/5] Fixed typo and type errors --- wavelink/exceptions.py | 4 ++-- wavelink/types/response.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wavelink/exceptions.py b/wavelink/exceptions.py index dc6b5805..c991f20d 100644 --- a/wavelink/exceptions.py +++ b/wavelink/exceptions.py @@ -94,14 +94,14 @@ class LavalinkException(WavelinkException): ---------- status: int The response status code. - reason: str | None + error: str | None The response reason. Could be ``None`` if no reason was provided. """ def __init__(self, msg: str | None = None, /, *, data: ErrorResponse) -> None: self.timestamp: int = data["timestamp"] self.status: int = data["status"] - self.error: str = data["error"] + self.error: None | str = data["error"] self.trace: str | None = data.get("trace") self.path: str = data["path"] diff --git a/wavelink/types/response.py b/wavelink/types/response.py index 3b7ed305..0265aad5 100644 --- a/wavelink/types/response.py +++ b/wavelink/types/response.py @@ -35,7 +35,7 @@ class ErrorResponse(TypedDict): timestamp: int status: int - error: str + error: None | str trace: NotRequired[str] message: str path: str From fb64f08a159dea683e16281986d2f808f91e5be1 Mon Sep 17 00:00:00 2001 From: Jiggly Balls Date: Tue, 23 Jun 2026 20:38:20 +0530 Subject: [PATCH 3/5] Wavelink version upgrade --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index d5a4486f..a1b41298 100644 --- a/uv.lock +++ b/uv.lock @@ -653,7 +653,7 @@ wheels = [ [[package]] name = "wavelink" -version = "3.5.1" +version = "3.5.2" source = { editable = "." } dependencies = [ { name = "aiohttp" }, From cccf8a5d9435dd4de1a75189642aba87c71fdc70 Mon Sep 17 00:00:00 2001 From: Jiggly-Balls Date: Wed, 8 Jul 2026 01:19:58 +0530 Subject: [PATCH 4/5] Fix annotations --- wavelink/exceptions.py | 2 +- wavelink/types/response.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wavelink/exceptions.py b/wavelink/exceptions.py index c991f20d..d3db59b6 100644 --- a/wavelink/exceptions.py +++ b/wavelink/exceptions.py @@ -101,7 +101,7 @@ class LavalinkException(WavelinkException): def __init__(self, msg: str | None = None, /, *, data: ErrorResponse) -> None: self.timestamp: int = data["timestamp"] self.status: int = data["status"] - self.error: None | str = data["error"] + self.error: str | None = data["error"] self.trace: str | None = data.get("trace") self.path: str = data["path"] diff --git a/wavelink/types/response.py b/wavelink/types/response.py index 0265aad5..e5f7e2be 100644 --- a/wavelink/types/response.py +++ b/wavelink/types/response.py @@ -35,7 +35,7 @@ class ErrorResponse(TypedDict): timestamp: int status: int - error: None | str + error: str | None trace: NotRequired[str] message: str path: str From e9064634af3272ffcecbc55c0f1df02e38d67624 Mon Sep 17 00:00:00 2001 From: Jiggly-Balls Date: Wed, 8 Jul 2026 01:38:41 +0530 Subject: [PATCH 5/5] Fix annotations for LavalinkException.error attribute --- docs/wavelink.rst | 4 ++-- wavelink/exceptions.py | 6 +++--- wavelink/types/response.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/wavelink.rst b/docs/wavelink.rst index da5374dd..7ac8ac5f 100644 --- a/docs/wavelink.rst +++ b/docs/wavelink.rst @@ -475,8 +475,8 @@ Exceptions ---------- status: int The response status code. - error: str | None - The response reason. Could be ``None`` if no reason was provided. + error: str + The HTTP status code message. .. py:exception:: LavalinkLoadException diff --git a/wavelink/exceptions.py b/wavelink/exceptions.py index d3db59b6..a865054d 100644 --- a/wavelink/exceptions.py +++ b/wavelink/exceptions.py @@ -94,14 +94,14 @@ class LavalinkException(WavelinkException): ---------- status: int The response status code. - error: str | None - The response reason. Could be ``None`` if no reason was provided. + error: str + The HTTP status code message. """ def __init__(self, msg: str | None = None, /, *, data: ErrorResponse) -> None: self.timestamp: int = data["timestamp"] self.status: int = data["status"] - self.error: str | None = data["error"] + self.error: str = data["error"] self.trace: str | None = data.get("trace") self.path: str = data["path"] diff --git a/wavelink/types/response.py b/wavelink/types/response.py index e5f7e2be..3b7ed305 100644 --- a/wavelink/types/response.py +++ b/wavelink/types/response.py @@ -35,7 +35,7 @@ class ErrorResponse(TypedDict): timestamp: int status: int - error: str | None + error: str trace: NotRequired[str] message: str path: str