summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-26 22:23:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-26 22:23:42 +0300
commit7ef2e7c8737905941593fd73018070934b47116b (patch)
tree29141b450529109f44cf7a7fb594f3b78b75f2eb /protocols/Discord/src/proto.h
parentf17907dd5c586022660dd27fcd6397dd22b2e365 (diff)
Discord: delayed chat creation + channel groups support
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 4f99ac0735..7f31402a2a 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -85,11 +85,13 @@ struct CDiscordUser : public MZeroedObject
SnowFlake guildId;
SnowFlake channelId;
SnowFlake lastReadId;
+ SnowFlake parentId;
bool bIsPrivate;
+ bool bIsGroup;
CDiscordMessage lastMsg;
- CMStringW wszUsername;
+ CMStringW wszUsername, wszChannelName, wszTopic;
int iDiscriminator;
};
@@ -122,6 +124,7 @@ struct CDiscordGuild : public MZeroedObject
SnowFlake id, ownerId;
CMStringW wszName;
MCONTACT hContact;
+ MGROUP groupId;
GCSessionInfoBase *pParentSi;
OBJLIST<CDiscordGuildMember> arChatUsers;
@@ -142,6 +145,7 @@ class CDiscordProto : public PROTO<CDiscordProto>
void __cdecl ServerThread(void*);
void __cdecl SearchThread(void *param);
void __cdecl SendMessageAckThread(void* param);
+ void __cdecl BatchChatCreate(void* param);
//////////////////////////////////////////////////////////////////////////////////////
// session control
@@ -255,6 +259,7 @@ class CDiscordProto : public PROTO<CDiscordProto>
void Chat_ProcessLogMenu(GCHOOK *gch);
void BuildStatusList(const CDiscordGuild *pGuild, const CMStringW &wszChannelId);
+ void CreateChat(CDiscordGuild *pGuild, CDiscordUser *pUser);
void ParseSpecialChars(SESSION_INFO *si, CMStringW &str);
//////////////////////////////////////////////////////////////////////////////////////