summaryrefslogtreecommitdiff
path: root/src/discord
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-06-21 02:31:18 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-06-21 02:31:18 -0400
commit19f7d55c8748e4fcd651540e299347689a2070ad (patch)
tree38fa8ae624c45e60a4c0fb96b23988589fee8507 /src/discord
parent00dddf410e8aa9df64d323211e9dcdf4309f06a1 (diff)
downloadabaddon-portaudio-19f7d55c8748e4fcd651540e299347689a2070ad.tar.gz
abaddon-portaudio-19f7d55c8748e4fcd651540e299347689a2070ad.zip
show legacy username as tooltip under username
Diffstat (limited to 'src/discord')
-rw-r--r--src/discord/objects.cpp1
-rw-r--r--src/discord/objects.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp
index 86264cc..715ae14 100644
--- a/src/discord/objects.cpp
+++ b/src/discord/objects.cpp
@@ -463,6 +463,7 @@ void from_json(const nlohmann::json &j, UserProfileData &m) {
JS_D("mutual_guilds", m.MutualGuilds);
JS_ON("premium_guild_since", m.PremiumGuildSince);
JS_ON("premium_since", m.PremiumSince);
+ JS_ON("legacy_username", m.LegacyUsername);
JS_D("user", m.User);
}
diff --git a/src/discord/objects.hpp b/src/discord/objects.hpp
index 3ad4037..4d56417 100644
--- a/src/discord/objects.hpp
+++ b/src/discord/objects.hpp
@@ -617,6 +617,7 @@ struct UserProfileData {
std::vector<MutualGuildData> MutualGuilds;
std::optional<std::string> PremiumGuildSince; // null
std::optional<std::string> PremiumSince; // null
+ std::optional<std::string> LegacyUsername; // null
UserData User;
friend void from_json(const nlohmann::json &j, UserProfileData &m);