diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-20 23:19:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-20 23:19:29 +0300 |
commit | 4b3ab972d3109f4014746fc8b1ea5b443697861c (patch) | |
tree | 7b5eb03f1b7c3a66fce857ffd30b5774e2cd268e /protocols/Discord/src/proto.h | |
parent | be6e15b71fcf555aad8bfd9054ca66ec71b91408 (diff) |
- valid (but totally undocumented) way of reading guild users;
- fix for decoding several replies from the single packet;
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r-- | protocols/Discord/src/proto.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 1b4e65d9b1..f4ec8055bc 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -95,6 +95,7 @@ struct CDiscordUser : public MZeroedObject SnowFlake id; MCONTACT hContact; + SnowFlake guildId; SnowFlake channelId; SnowFlake lastMessageId; bool bIsPrivate; @@ -156,6 +157,7 @@ class CDiscordProto : public PROTO<CDiscordProto> void GatewaySendHeartbeat(void); void GatewaySendIdentify(void); + void GatewaySendGuildInfo(SnowFlake id); GatewayHandlerFunc GetHandler(const wchar_t*); @@ -235,8 +237,9 @@ public: int __cdecl GroupchatMenuHook(WPARAM, LPARAM); // dispatch commands - void OnChannelCreated(const JSONNode&); - void OnChannelDeleted(const JSONNode&); + void OnCommandChannelCreated(const JSONNode&); + void OnCommandChannelDeleted(const JSONNode&); + void OnCommandGuildSync(const JSONNode&); void OnCommandFriendAdded(const JSONNode&); void OnCommandFriendRemoved(const JSONNode&); void OnCommandMessage(const JSONNode&); |