summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r--discord/objects.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/objects.hpp b/discord/objects.hpp
index 453a5f4..7e325e4 100644
--- a/discord/objects.hpp
+++ b/discord/objects.hpp
@@ -24,6 +24,8 @@ enum class GatewayOp : int {
Heartbeat = 1,
Identify = 2,
UpdateStatus = 3,
+ Resume = 6,
+ Reconnect = 7,
Hello = 10,
HeartbeatAck = 11,
LazyLoadRequest = 14,
@@ -241,3 +243,11 @@ struct CreateDMObject {
friend void to_json(nlohmann::json &j, const CreateDMObject &m);
};
+
+struct ResumeMessage : GatewayMessage {
+ std::string Token;
+ std::string SessionID;
+ int Sequence;
+
+ friend void to_json(nlohmann::json &j, const ResumeMessage &m);
+};