Skip to content

Commit

Permalink
Fix incorrect callback typing for WebsocketHook
Browse files Browse the repository at this point in the history
  • Loading branch information
imayhaveborkedit committed Sep 28, 2023
1 parent 44284ae commit 9f8f9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/voice_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
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]


Expand Down

0 comments on commit 9f8f9bf

Please sign in to comment.