From 3c046cb34d7d723fb7c8889c184319075fc99a07 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 28 Aug 2021 17:52:00 -0300 Subject: [PATCH] gateway: pass version as int to websocket properties --- 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 e9c4a03..fe3786f 100644 --- a/litecord/gateway/gateway.py +++ b/litecord/gateway/gateway.py @@ -54,7 +54,7 @@ async def websocket_handler(app, ws, url): async with app.app_context(): gws = GatewayWebsocket( - ws, v=gw_version, encoding=gw_encoding, compress=gw_compress + ws, v=int(gw_version), encoding=gw_encoding, compress=gw_compress ) # this can be run with a single await since this whole coroutine