From 2328c8bafee708fc33dcd004562a270183ebcf30 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 20 Jan 2022 01:40:27 -0500 Subject: handle initial muted state for threads --- src/discord/channel.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/discord/channel.hpp') diff --git a/src/discord/channel.hpp b/src/discord/channel.hpp index 195a09a..4485b0b 100644 --- a/src/discord/channel.hpp +++ b/src/discord/channel.hpp @@ -49,9 +49,19 @@ struct ThreadMetadataData { friend void from_json(const nlohmann::json &j, ThreadMetadataData &m); }; +struct MuteConfigData { + std::optional EndTime; // nullopt is encoded as null + int SelectedTimeWindow; + + friend void from_json(const nlohmann::json &j, MuteConfigData &m); + friend void to_json(nlohmann::json &j, const MuteConfigData &m); +}; + struct ThreadMemberObject { std::optional ThreadID; std::optional UserID; + std::optional IsMuted; + std::optional MuteConfig; std::string JoinTimestamp; int Flags; -- cgit v1.2.3