From 925405826a23527a17b6a5ce1917dcd5507c0b38 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 9 May 2021 01:20:48 -0400 Subject: handle RELATIONSHIP_ADD --- discord/objects.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'discord/objects.hpp') 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 ShouldNotify; // i guess if the client should send a notification. not worth caring about + + friend void from_json(const nlohmann::json &j, RelationshipAddData &m); +}; -- cgit v1.2.3