From 3ab3119602c46e7c4802b2b8e017752738cd7031 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 18 Feb 2021 14:38:40 -0500 Subject: add menu item to add recipient to group dm --- discord/relationship.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 discord/relationship.hpp (limited to 'discord/relationship.hpp') diff --git a/discord/relationship.hpp b/discord/relationship.hpp new file mode 100644 index 0000000..d492bd3 --- /dev/null +++ b/discord/relationship.hpp @@ -0,0 +1,21 @@ +#pragma once +#include "json.hpp" +#include "user.hpp" + +enum class RelationshipType { + None = 0, + Friend = 1, + Blocked = 2, + PendingIncoming = 3, + PendingOutgoing = 4, + Implicit = 5, +}; + +struct RelationshipData { + // Snowflake UserID; this is the same as ID apparently but it looks new so i wont touch it + RelationshipType Type; + Snowflake ID; + // Unknown Nickname; // null + + friend void from_json(const nlohmann::json &j, RelationshipData &m); +}; -- cgit v1.2.3