summaryrefslogtreecommitdiff
path: root/src/discord/channel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/channel.hpp')
-rw-r--r--src/discord/channel.hpp10
1 files changed, 10 insertions, 0 deletions
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<std::string> 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<Snowflake> ThreadID;
std::optional<Snowflake> UserID;
+ std::optional<bool> IsMuted;
+ std::optional<MuteConfigData> MuteConfig;
std::string JoinTimestamp;
int Flags;