summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
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);
+};