From bf3b1748b0cfc45994468eb2574c621c749f6b45 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 29 Sep 2020 22:44:08 -0300 Subject: [PATCH] gateway: allow "8" in url params --- litecord/gateway/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/gateway/gateway.py b/litecord/gateway/gateway.py index 5d36922..98665d7 100644 --- a/litecord/gateway/gateway.py +++ b/litecord/gateway/gateway.py @@ -38,7 +38,7 @@ async def websocket_handler(app, ws, url): except (KeyError, IndexError): gw_encoding = "json" - if gw_version not in ("6", "7"): + if gw_version not in ("6", "7", "8"): return await ws.close(1000, "Invalid gateway version") if gw_encoding not in ("json", "etf"):