summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-12-18 23:55:28 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-12-18 23:55:28 -0500
commit2ec60ce5ac65f0783c6bd636af0e840605aa8c60 (patch)
tree9246e6475689ebea803c33cdadf598aa611fff08 /discord/objects.hpp
parent712eba816e1824c7babeffc946dad0335bd87913 (diff)
downloadabaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.tar.gz
abaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.zip
fix presence in identify and update build number
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r--discord/objects.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/discord/objects.hpp b/discord/objects.hpp
index a3877a7..1d058de 100644
--- a/discord/objects.hpp
+++ b/discord/objects.hpp
@@ -145,10 +145,7 @@ struct LazyLoadRequestMessage {
};
struct UpdateStatusMessage {
- std::vector<Activity> Activities; // null (but never sent as such)
- std::string Status;
- bool IsAFK;
- int Since = 0;
+ Presence Presence;
friend void to_json(nlohmann::json &j, const UpdateStatusMessage &m);
};
@@ -209,7 +206,7 @@ struct ClientStateProperties {
struct IdentifyMessage : GatewayMessage {
std::string Token;
IdentifyProperties Properties;
- UpdateStatusMessage Presence;
+ Presence Presence;
ClientStateProperties ClientState;
bool DoesSupportCompression = false;
int Capabilities;