From 014e176e0a7cf457a03278dbdf8495400981b8b2 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 28 Jul 2021 03:34:36 -0400 Subject: handle THREAD_CREATE also fix compilation also change channel_create signal to emit ChannelData --- discord/objects.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/objects.cpp') diff --git a/discord/objects.cpp b/discord/objects.cpp index 8588b30..c4b1517 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -472,3 +472,7 @@ void to_json(nlohmann::json &j, const FriendRequestObject &m) { void to_json(nlohmann::json &j, const PutRelationshipObject &m) { JS_IF("type", m.Type); } + +void from_json(const nlohmann::json &j, ThreadCreateData &m) { + j.get_to(m.Channel); +} -- cgit v1.2.3