friends: send friend requests

This commit is contained in:
ouwou
2021-05-10 02:13:12 -04:00
parent 81ae2b3a83
commit 06ba3acc93
7 changed files with 114 additions and 0 deletions

View File

@@ -463,3 +463,8 @@ 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;
}