diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-13 20:40:41 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-13 20:40:41 -0400 |
commit | a4a8293a0e9dc2e7023cc5f407eb78a505f22129 (patch) | |
tree | 9f3f2b5246086606e31804480d31122ff0d4e264 /src/discord/user.cpp | |
parent | bfc5b0e682852173e03d703b1098530fd65a0dd4 (diff) | |
download | abaddon-portaudio-a4a8293a0e9dc2e7023cc5f407eb78a505f22129.tar.gz abaddon-portaudio-a4a8293a0e9dc2e7023cc5f407eb78a505f22129.zip |
show pomelo names in profile window
Diffstat (limited to 'src/discord/user.cpp')
-rw-r--r-- | src/discord/user.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/discord/user.cpp b/src/discord/user.cpp index 7fbcdca..06073ad 100644 --- a/src/discord/user.cpp +++ b/src/discord/user.cpp @@ -89,6 +89,14 @@ std::string UserData::GetName() const { return Username; } +std::string UserData::GetUsername() const { + if (IsPomelo()) { + return Username; + } + + return Username + "#" + Discriminator; +} + std::string UserData::GetEscapedName() const { return Glib::Markup::escape_text(GetName()); } |