mirror of https://gitlab.com/litecord/litecord.git
Compare commits
2 Commits
c1a6d9a53a
...
e85e38ddb7
| Author | SHA1 | Date |
|---|---|---|
|
|
e85e38ddb7 | |
|
|
3d127b405f |
|
|
@ -887,6 +887,9 @@ class GatewayWebsocket:
|
||||||
# they CAN NOT enter two channels in a single guild.
|
# they CAN NOT enter two channels in a single guild.
|
||||||
|
|
||||||
# this state id format takes care of that.
|
# this state id format takes care of that.
|
||||||
|
#
|
||||||
|
# TODO voice_key should have a type as a 0th element to prevent
|
||||||
|
# code from having to call get_guild(id2).
|
||||||
voice_key = (self.state.user_id, state_id2)
|
voice_key = (self.state.user_id, state_id2)
|
||||||
voice_state = await self.app.voice.get_state(voice_key)
|
voice_state = await self.app.voice.get_state(voice_key)
|
||||||
|
|
||||||
|
|
@ -904,6 +907,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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue