Add return type for DiscordWebSocket.wait_for

This commit is contained in:
TheLeadingLlama 2021-08-19 18:45:22 -04:00
parent 8f2b367e0b
commit 1f26713e6d

View File

@ -384,7 +384,7 @@ class DiscordWebSocket:
await ws.resume()
return ws
def wait_for(self, event: str, predicate: Callable[[Dict[str, Any]], bool], result: Optional[Callable[[Dict[str, Any]], Any]] = None):
def wait_for(self, event: str, predicate: Callable[[Dict[str, Any]], bool], result: Optional[Callable[[Dict[str, Any]], Any]] = None) -> asyncio.Future:
"""Waits for a DISPATCH'd event that meets the predicate.
Parameters