summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-10-13 02:35:02 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-10-13 02:35:02 -0400
commit99597a80d2eb9752882791d458036c2c17969767 (patch)
tree653aafc326b79875c9117b29b8c4ca5407b3023e /discord/user.hpp
parentc17842c16f10f55f2f0923e94033a482ef98838e (diff)
downloadabaddon-portaudio-99597a80d2eb9752882791d458036c2c17969767.tar.gz
abaddon-portaudio-99597a80d2eb9752882791d458036c2c17969767.zip
add PRESENCE_UPDATE handling (for user object only)
Diffstat (limited to 'discord/user.hpp')
-rw-r--r--discord/user.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/user.hpp b/discord/user.hpp
index 54f082f..e3d893d 100644
--- a/discord/user.hpp
+++ b/discord/user.hpp
@@ -25,6 +25,7 @@ struct User {
std::string Phone; // null?
friend void from_json(const nlohmann::json &j, User &m);
+ static void update_from_json(const nlohmann::json &j, User &m);
bool HasAvatar() const;
std::string GetAvatarURL(std::string ext = "png", std::string size = "32") const;