diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-10 02:13:12 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-10 02:13:12 -0400 |
commit | 06ba3acc93ed57cb41e319eb5f7da06d15b72ec2 (patch) | |
tree | 13b208f4f0372d1d670fca1e7eb4e374fa1c2971 /discord/objects.hpp | |
parent | 81ae2b3a83e5c9e1f34714f7ba004638b3beeeb0 (diff) | |
download | abaddon-portaudio-06ba3acc93ed57cb41e319eb5f7da06d15b72ec2.tar.gz abaddon-portaudio-06ba3acc93ed57cb41e319eb5f7da06d15b72ec2.zip |
friends: send friend requests
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r-- | discord/objects.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); +}; |