From 3d127b405f7e4e34e4b41a2db9ee2a29295c9131 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 19 Feb 2022 17:45:09 -0300 Subject: [PATCH] ignore possibly invalid VSUs but still warn on them --- litecord/gateway/websocket.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litecord/gateway/websocket.py b/litecord/gateway/websocket.py index d1e293d..0b2aa5e 100644 --- a/litecord/gateway/websocket.py +++ b/litecord/gateway/websocket.py @@ -904,6 +904,10 @@ class GatewayWebsocket: if same_guild and not same_channel: return await self.app.voice.move_state(voice_state, channel_id) + # TODO: this is an edge case. we're trying to move guilds in + # a single message, perhaps? + log.warning("vsu payload does not appear logical") + async def _handle_5(self, payload: Dict[str, Any]): """Handle OP 5 Voice Server Ping.