summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-01-07 02:41:49 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-01-07 02:41:49 -0500
commit8cf95fce0cb233125334482149c2c9f4219da52b (patch)
treec0c2e267385363e0f87ad4c80d299c08d33a33a9 /discord/user.hpp
parent2d6c4cd50d0075c064641150dcf65e6b58d5bf36 (diff)
downloadabaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.tar.gz
abaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.zip
improve build process, add github actions
Diffstat (limited to 'discord/user.hpp')
-rw-r--r--discord/user.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/user.hpp b/discord/user.hpp
index cf6c2fa..4672ea8 100644
--- a/discord/user.hpp
+++ b/discord/user.hpp
@@ -3,7 +3,7 @@
#include "json.hpp"
#include <string>
-struct User {
+struct UserData {
Snowflake ID;
std::string Username;
std::string Discriminator;
@@ -24,9 +24,9 @@ struct User {
std::optional<bool> IsNSFWAllowed; // null
std::optional<std::string> Phone; // null?
- friend void from_json(const nlohmann::json &j, User &m);
- friend void to_json(nlohmann::json &j, const User &m);
- static void update_from_json(const nlohmann::json &j, User &m);
+ friend void from_json(const nlohmann::json &j, UserData &m);
+ friend void to_json(nlohmann::json &j, const UserData &m);
+ static void update_from_json(const nlohmann::json &j, UserData &m);
bool HasAvatar() const;
bool HasAnimatedAvatar() const;