Type-hint gateway

This commit is contained in:
Josh
2022-02-22 16:44:52 +10:00
committed by Rapptz
parent f5e087c5c3
commit c8064ba6f2
3 changed files with 190 additions and 117 deletions

View File

@ -239,6 +239,7 @@ class VoiceClient(VoiceProtocol):
super().__init__(client, channel)
state = client._connection
self.token: str = MISSING
self.server_id: int = MISSING
self.socket = MISSING
self.loop: asyncio.AbstractEventLoop = state.loop
self._state: ConnectionState = state