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

@@ -19,6 +19,7 @@
#include "ban.hpp"
#include "auditlog.hpp"
#include "relationship.hpp"
#include "errors.hpp"
// most stuff below should just be objects that get processed and thrown away immediately
@@ -645,3 +646,10 @@ struct RelationshipAddData {
friend void from_json(const nlohmann::json &j, RelationshipAddData &m);
};
struct FriendRequestObject {
std::string Username;
int Discriminator;
friend void to_json(nlohmann::json &j, const FriendRequestObject &m);
};