From f5df43194e19be7995d753c5e9dd0a5a9365f24a Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 14 Apr 2021 02:59:57 -0400 Subject: handle more of discord's quirky way of doing slowmode also has the side effect of reducing db hits a little bit --- components/ratelimitindicator.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/ratelimitindicator.hpp') diff --git a/components/ratelimitindicator.hpp b/components/ratelimitindicator.hpp index 95dddb6..d6ada43 100644 --- a/components/ratelimitindicator.hpp +++ b/components/ratelimitindicator.hpp @@ -18,6 +18,7 @@ private: bool UpdateIndicator(); void OnMessageCreate(const Message &message); void OnMessageSendFail(const std::string &nonce, float rate_limit); + void OnChannelUpdate(Snowflake channel_id); Gtk::Image m_img; Gtk::Label m_label; @@ -26,5 +27,5 @@ private: int m_rate_limit; Snowflake m_active_channel; - std::unordered_map> m_times; + std::unordered_map> m_times; // time point of when next message can be sent }; -- cgit v1.2.3