From 469053a14468f08dc694a1ef8d98f0265a72dd07 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 8 May 2021 23:35:15 -0400 Subject: handle RELATIONSHIP_REMOVE --- discord/objects.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index 5335dc0..2c6ac4c 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -68,6 +68,7 @@ enum class GatewayEvent : int { GUILD_JOIN_REQUEST_CREATE, GUILD_JOIN_REQUEST_UPDATE, GUILD_JOIN_REQUEST_DELETE, + RELATIONSHIP_REMOVE, }; enum class GatewayCloseCode : uint16_t { @@ -626,3 +627,10 @@ struct RateLimitedResponse { friend void from_json(const nlohmann::json &j, RateLimitedResponse &m); }; + +struct RelationshipRemoveData { + Snowflake ID; + RelationshipType Type; + + friend void from_json(const nlohmann::json &j, RelationshipRemoveData &m); +}; -- cgit v1.2.3