diff --git a/boticordpy/websocket.py b/boticordpy/websocket.py index 2faf5ad..8914a04 100644 --- a/boticordpy/websocket.py +++ b/boticordpy/websocket.py @@ -140,7 +140,7 @@ class BotiCordWebsocket: await self.connect() async def _send_ping(self) -> None: - if self.not_closed: + if not self.ws.closed: await asyncio.sleep(45) await self.ws.send_json({"event": "ping"})