diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-03-26 02:58:59 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-03-26 02:58:59 -0400 |
commit | a0b3c9f8a4f8d2c39258d4c142f8604423576d91 (patch) | |
tree | 841155a65b439b61a5c58c1f64878152c20d4f51 /src/discord/channel.hpp | |
parent | 481685b3bbb2b0270870dec5de87e60fc2d84d15 (diff) | |
parent | a2a45757e917aa97e71cf0b84a01dc843759a5f6 (diff) | |
download | abaddon-portaudio-a0b3c9f8a4f8d2c39258d4c142f8604423576d91.tar.gz abaddon-portaudio-a0b3c9f8a4f8d2c39258d4c142f8604423576d91.zip |
Merge branch 'master' into msys
Diffstat (limited to 'src/discord/channel.hpp')
-rw-r--r-- | src/discord/channel.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/discord/channel.hpp b/src/discord/channel.hpp index 195a09a..89e43a0 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; @@ -89,6 +99,8 @@ struct ChannelData { bool IsThread() const noexcept; bool IsJoinedThread() const; bool IsCategory() const noexcept; + bool HasIcon() const noexcept; + std::string GetIconURL() const; std::vector<Snowflake> GetChildIDs() const; std::optional<PermissionOverwrite> GetOverwrite(Snowflake id) const; std::vector<UserData> GetDMRecipients() const; |