From 15954830e278007fc8da209944d4422240d65ecc Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 10 Dec 2021 03:26:33 -0500 Subject: hide guild unread indicator for muted guilds --- src/discord/discord.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/discord/discord.hpp') diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp index 465866a..4dc9520 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 IsGuildMuted(Snowflake id) const noexcept; int GetUnreadStateForChannel(Snowflake id) const noexcept; PresenceStatus GetUserStatus(Snowflake id) const; @@ -265,6 +266,7 @@ private: void StoreMessageData(Message &msg); void HandleReadyReadState(const ReadyEventData &data); + void HandleReadyGuildSettings(const ReadyEventData &data); std::string m_token; @@ -277,6 +279,7 @@ private: std::set m_joined_threads; std::map> m_thread_members; std::map m_last_message_id; + std::unordered_set m_muted_guilds; std::unordered_map m_unread; UserData m_user_data; -- cgit v1.2.3