Add return type for DiscordWebSocket.wait_for
This commit is contained in:
parent
8f2b367e0b
commit
1f26713e6d
@ -384,7 +384,7 @@ class DiscordWebSocket:
|
|||||||
await ws.resume()
|
await ws.resume()
|
||||||
return ws
|
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.
|
"""Waits for a DISPATCH'd event that meets the predicate.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user