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.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'discord/objects.cpp') diff --git a/discord/objects.cpp b/discord/objects.cpp index 9db6cf8..0d4ab16 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -457,3 +457,9 @@ void from_json(const nlohmann::json &j, RelationshipRemoveData &m) { JS_D("id", m.ID); JS_D("type", m.Type); } + +void from_json(const nlohmann::json &j, RelationshipAddData &m) { + JS_D("id", m.ID); + JS_D("type", m.Type); + JS_D("user", m.User); +} -- cgit v1.2.3