From 2667a4b30dd346f70aa8ca1ee7994c559be6d2bb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 15 Dec 2020 01:51:49 -0500 Subject: display reactions + click to add/remove --- discord/user.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'discord/user.cpp') diff --git a/discord/user.cpp b/discord/user.cpp index 78d309b..56f0350 100644 --- a/discord/user.cpp +++ b/discord/user.cpp @@ -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); -- cgit v1.2.3