diff --git a/discord/gateway.py b/discord/gateway.py index f77037b9..41e6bc8e 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -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