summaryrefslogtreecommitdiff
path: root/discord/activity.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/activity.hpp
parent712eba816e1824c7babeffc946dad0335bd87913 (diff)
downloadabaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.tar.gz
abaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.zip
fix presence in identify and update build number
Diffstat (limited to 'discord/activity.hpp')
-rw-r--r--discord/activity.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/activity.hpp b/discord/activity.hpp
index 90040ca..d889b22 100644
--- a/discord/activity.hpp
+++ b/discord/activity.hpp
@@ -90,3 +90,12 @@ struct Activity {
friend void from_json(const nlohmann::json &j, Activity &m);
friend void to_json(nlohmann::json &j, const Activity &m);
};
+
+struct Presence {
+ std::vector<Activity> Activities; // null (but never sent as such)
+ std::string Status;
+ bool IsAFK;
+ int Since = 0;
+
+ friend void to_json(nlohmann::json &j, const Presence &m);
+};