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.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index 11c8df4..7c249cd 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -71,6 +71,12 @@ enum class GatewayEvent : int { GUILD_JOIN_REQUEST_DELETE, RELATIONSHIP_REMOVE, RELATIONSHIP_ADD, + THREAD_CREATE, + THREAD_UPDATE, + THREAD_DELETE, + THREAD_LIST_SYNC, + THREAD_MEMBER_UPDATE, + THREAD_MEMBERS_UPDATE, }; enum class GatewayCloseCode : uint16_t { @@ -659,3 +665,9 @@ struct PutRelationshipObject { friend void to_json(nlohmann::json &j, const PutRelationshipObject &m); }; + +struct ThreadCreateData { + ChannelData Channel; + + friend void from_json(const nlohmann::json &j, ThreadCreateData &m); +}; -- cgit v1.2.3