diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-01-20 01:40:27 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-01-20 01:40:27 -0500 |
commit | 2328c8bafee708fc33dcd004562a270183ebcf30 (patch) | |
tree | b2226646044e03e4ee7b7c92c992f3337e42dd6b /src/discord/channel.hpp | |
parent | dfd642bb82d2998cc563f0f401f2d522632692c1 (diff) | |
download | abaddon-portaudio-2328c8bafee708fc33dcd004562a270183ebcf30.tar.gz abaddon-portaudio-2328c8bafee708fc33dcd004562a270183ebcf30.zip |
handle initial muted state for threads
Diffstat (limited to 'src/discord/channel.hpp')
-rw-r--r-- | src/discord/channel.hpp | 10 |
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; |