Force v9 API.
@@ -133,7 +133,7 @@ class WebSocket:
"""
self.http = HTTPClient(token)
self.options["headers"] = {"User-Agent": self.http.req.headers["User-Agent"]}
- url = await self.http.get_gateway()
+ url = await self.http.get_gateway() = "?v=9"
async with self.http._req.session.ws_connect(url, **self.options) as self.session:
while not self.closed:
