diff options
Diffstat (limited to 'discord/objects.cpp')
-rw-r--r-- | discord/objects.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/objects.cpp b/discord/objects.cpp index 95f7fa6..8588b30 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -463,3 +463,12 @@ void from_json(const nlohmann::json &j, RelationshipAddData &m) { JS_D("type", m.Type); JS_D("user", m.User); } + +void to_json(nlohmann::json &j, const FriendRequestObject &m) { + j["username"] = m.Username; + j["discriminator"] = m.Discriminator; +} + +void to_json(nlohmann::json &j, const PutRelationshipObject &m) { + JS_IF("type", m.Type); +} |