add viewing audit log

This commit is contained in:
ouwou
2021-01-24 22:24:03 -05:00
parent cfa6607fc8
commit 3923acd0dd
14 changed files with 690 additions and 7 deletions

View File

@@ -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);