diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-16 00:58:17 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-16 00:58:17 -0500 |
commit | 1fb7ca000753d2c6a39a560126f3ba7d229af46d (patch) | |
tree | 8a7fe60438c2f58b2461a4f001fbae975e9f7f11 /src/discord/discord.hpp | |
parent | a5332efcfb411bb8ed04d569e20f77996eb1aa6c (diff) | |
download | abaddon-portaudio-1fb7ca000753d2c6a39a560126f3ba7d229af46d.tar.gz abaddon-portaudio-1fb7ca000753d2c6a39a560126f3ba7d229af46d.zip |
hide unread indicator for muted channels
Diffstat (limited to 'src/discord/discord.hpp')
-rw-r--r-- | src/discord/discord.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp index 4dc9520..fbee775 100644 --- a/src/discord/discord.hpp +++ b/src/discord/discord.hpp @@ -184,6 +184,7 @@ public: void UpdateToken(std::string token); void SetUserAgent(std::string agent); + bool IsChannelMuted(Snowflake id) const noexcept; bool IsGuildMuted(Snowflake id) const noexcept; int GetUnreadStateForChannel(Snowflake id) const noexcept; @@ -280,6 +281,7 @@ private: std::map<Snowflake, std::vector<Snowflake>> m_thread_members; std::map<Snowflake, Snowflake> m_last_message_id; std::unordered_set<Snowflake> m_muted_guilds; + std::unordered_set<Snowflake> m_muted_channels; std::unordered_map<Snowflake, int> m_unread; UserData m_user_data; |