mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
display reactions + click to add/remove
This commit is contained in:
@@ -33,6 +33,13 @@ void from_json(const nlohmann::json &j, User &m) {
|
||||
JS_ON("phone", m.Phone);
|
||||
}
|
||||
|
||||
void to_json(nlohmann::json &j, const User &m) {
|
||||
j["id"] = m.ID;
|
||||
j["username"] = m.Username;
|
||||
j["avatar"] = m.Avatar;
|
||||
// rest of stuff as needed im too lazy and its probably not necessary
|
||||
}
|
||||
|
||||
void User::update_from_json(const nlohmann::json &j, User &m) {
|
||||
JS_RD("username", m.Username);
|
||||
JS_RD("discriminator", m.Discriminator);
|
||||
|
||||
Reference in New Issue
Block a user