summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index b750b67b2d..9f42b4ad58 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -45,16 +45,6 @@ struct CDiscordRole : public MZeroedObject
/////////////////////////////////////////////////////////////////////////////////////////
-struct CDiscordMessage
-{
- SnowFlake id, authorId;
-
- CDiscordMessage(SnowFlake _id = 0, SnowFlake _authorId = 0) :
- id(_id),
- authorId(_authorId)
- {}
-};
-
struct COwnMessage
{
SnowFlake nonce;
@@ -85,13 +75,12 @@ struct CDiscordUser : public MZeroedObject
MCONTACT hContact;
SnowFlake channelId;
- SnowFlake lastReadId;
+ SnowFlake lastReadId, lastMsgId;
SnowFlake parentId;
bool bIsPrivate;
bool bIsGroup;
struct CDiscordGuild *pGuild;
- CDiscordMessage lastMsg;
CMStringW wszUsername, wszChannelName, wszTopic;
int iDiscriminator;
@@ -356,7 +345,6 @@ public:
void OnReceiveCreateChannel(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveFile(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveGateway(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
- void OnReceiveMessage(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveMessageAck(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveToken(NETLIBHTTPREQUEST*, AsyncHttpRequest*);