mirror of https://gitlab.com/litecord/litecord.git
gateway.opcodes: add CALL_SYNC
- gateway.websocket: add dummy handler for CALL_SYNC
This commit is contained in:
parent
71d1adac53
commit
ebf16754af
|
|
@ -20,5 +20,8 @@ class OP:
|
|||
# request member / presence information
|
||||
GUILD_SYNC = 12
|
||||
|
||||
# request to sync up call dm / group dm
|
||||
CALL_SYNC = 13
|
||||
|
||||
# request for lazy guilds
|
||||
LAZY_REQUEST = 14
|
||||
|
|
|
|||
|
|
@ -583,6 +583,20 @@ class GatewayWebsocket:
|
|||
|
||||
await self._guild_sync(guild_id)
|
||||
|
||||
async def handle_13(self, payload: Dict[str, Any]):
|
||||
"""Handle CALL_SYNC request.
|
||||
|
||||
There isn't any need to actually finish the implementation
|
||||
since we don't have voice. Discord doesn't seem to send anything
|
||||
on text-only DMs, so I'll keep that behavior and do nothing.
|
||||
|
||||
CALL_SYNC structure (for now, we don't know if there is anything else):
|
||||
{
|
||||
channel_id: snowflake
|
||||
}
|
||||
"""
|
||||
pass
|
||||
|
||||
async def handle_14(self, payload: Dict[str, Any]):
|
||||
"""Lazy guilds handler.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue