ignore possibly invalid VSUs but still warn on them

This commit is contained in:
Luna 2022-02-19 17:45:09 -03:00
parent c1a6d9a53a
commit 3d127b405f
1 changed files with 4 additions and 0 deletions

View File

@ -904,6 +904,10 @@ class GatewayWebsocket:
if same_guild and not same_channel: if same_guild and not same_channel:
return await self.app.voice.move_state(voice_state, channel_id) 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]): async def _handle_5(self, payload: Dict[str, Any]):
"""Handle OP 5 Voice Server Ping. """Handle OP 5 Voice Server Ping.