diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-24 22:24:03 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-24 22:24:03 -0500 |
commit | 3923acd0dd7adef1710bfa039eb22454d9d551dd (patch) | |
tree | c81f9dd18f4bb6b0822b1fee21b34a87a4039eb1 /discord/user.cpp | |
parent | cfa6607fc88b25fa74969e5407d4467ea9900444 (diff) | |
download | abaddon-portaudio-3923acd0dd7adef1710bfa039eb22454d9d551dd.tar.gz abaddon-portaudio-3923acd0dd7adef1710bfa039eb22454d9d551dd.zip |
add viewing audit log
Diffstat (limited to 'discord/user.cpp')
-rw-r--r-- | discord/user.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/user.cpp b/discord/user.cpp index edaa701..443365d 100644 --- a/discord/user.cpp +++ b/discord/user.cpp @@ -21,6 +21,10 @@ std::string UserData::GetMention() const { return "<@" + std::to_string(ID) + ">"; } +std::string UserData::GetEscapedString() const { + return Glib::Markup::escape_text(Username) + "#" + Discriminator; +} + void from_json(const nlohmann::json &j, UserData &m) { JS_D("id", m.ID); JS_D("username", m.Username); |