diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-18 14:38:40 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-18 14:38:40 -0500 |
commit | 3ab3119602c46e7c4802b2b8e017752738cd7031 (patch) | |
tree | 5b69db1fc8159212e988ffbcb74dde402dfc9023 /discord/relationship.hpp | |
parent | a721600016686cebb39bc359916a35f12a70766a (diff) | |
download | abaddon-portaudio-3ab3119602c46e7c4802b2b8e017752738cd7031.tar.gz abaddon-portaudio-3ab3119602c46e7c4802b2b8e017752738cd7031.zip |
add menu item to add recipient to group dm
Diffstat (limited to 'discord/relationship.hpp')
-rw-r--r-- | discord/relationship.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
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); +}; |