gateway.opcodes: add CALL_SYNC

- gateway.websocket: add dummy handler for CALL_SYNC
This commit is contained in:
Luna Mendes 2018-10-10 18:21:18 -03:00
parent 71d1adac53
commit ebf16754af
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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.