From 06ba3acc93ed57cb41e319eb5f7da06d15b72ec2 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 10 May 2021 02:13:12 -0400 Subject: friends: send friend requests --- discord/objects.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index 56191df..f3256f4 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -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); +}; -- cgit v1.2.3