summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
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;