From 9f8f9bf56b73c371efe9f3e384f34c0ebc0c5d35 Mon Sep 17 00:00:00 2001 From: Imayhaveborkedit Date: Thu, 28 Sep 2023 18:56:14 -0400 Subject: [PATCH] Fix incorrect callback typing for WebsocketHook --- discord/voice_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/voice_state.py b/discord/voice_state.py index f8ab1fa54..4ede821be 100644 --- a/discord/voice_state.py +++ b/discord/voice_state.py @@ -68,7 +68,7 @@ if TYPE_CHECKING: SupportedModes, ) - WebsocketHook = Optional[Callable[['VoiceConnectionState', Dict[str, Any]], Coroutine[Any, Any, Any]]] + WebsocketHook = Optional[Callable[[DiscordVoiceWebSocket, Dict[str, Any]], Coroutine[Any, Any, Any]]] SocketReaderCallback = Callable[[bytes], Any]