diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-10 03:26:33 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-12-10 03:26:33 -0500 |
commit | 15954830e278007fc8da209944d4422240d65ecc (patch) | |
tree | 82c5dad6357a57a7301cee9ac7901c8c9a48ea24 /src/discord/discord.hpp | |
parent | 46ab760a56430463f216467ec227453402ed43de (diff) | |
download | abaddon-portaudio-15954830e278007fc8da209944d4422240d65ecc.tar.gz abaddon-portaudio-15954830e278007fc8da209944d4422240d65ecc.zip |
hide guild unread indicator for muted guilds
Diffstat (limited to 'src/discord/discord.hpp')
-rw-r--r-- | src/discord/discord.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Snowflake> m_joined_threads; 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_map<Snowflake, int> m_unread; UserData m_user_data; |