summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-05-09 01:20:48 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-05-09 01:20:48 -0400
commit925405826a23527a17b6a5ce1917dcd5507c0b38 (patch)
tree273e28b6ab6e63c509c7184e033c327041c5ba6d /discord/objects.hpp
parent469053a14468f08dc694a1ef8d98f0265a72dd07 (diff)
downloadabaddon-portaudio-925405826a23527a17b6a5ce1917dcd5507c0b38.tar.gz
abaddon-portaudio-925405826a23527a17b6a5ce1917dcd5507c0b38.zip
handle RELATIONSHIP_ADD
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r--discord/objects.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/discord/objects.hpp b/discord/objects.hpp
index 2c6ac4c..56191df 100644
--- a/discord/objects.hpp
+++ b/discord/objects.hpp
@@ -69,6 +69,7 @@ enum class GatewayEvent : int {
GUILD_JOIN_REQUEST_UPDATE,
GUILD_JOIN_REQUEST_DELETE,
RELATIONSHIP_REMOVE,
+ RELATIONSHIP_ADD,
};
enum class GatewayCloseCode : uint16_t {
@@ -634,3 +635,13 @@ struct RelationshipRemoveData {
friend void from_json(const nlohmann::json &j, RelationshipRemoveData &m);
};
+
+struct RelationshipAddData {
+ Snowflake ID;
+ // Nickname; same deal as the other comment somewhere else
+ RelationshipType Type;
+ UserData User;
+ // std::optional<bool> ShouldNotify; // i guess if the client should send a notification. not worth caring about
+
+ friend void from_json(const nlohmann::json &j, RelationshipAddData &m);
+};