diff options
Diffstat (limited to 'src/notifications/notifications.hpp')
-rw-r--r-- | src/notifications/notifications.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/notifications/notifications.hpp b/src/notifications/notifications.hpp new file mode 100644 index 0000000..b4ea584 --- /dev/null +++ b/src/notifications/notifications.hpp @@ -0,0 +1,23 @@ +#pragma once +#include "notifier.hpp" +#include <map> +#include <vector> + +class Message; + +class Notifications { +public: + Notifications(); + + void CheckMessage(const Message &message); + void WithdrawChannel(Snowflake channel_id); + +private: + void NotifyMessageDM(const Message &message); + void NotifyMessageGuild(const Message &message); + + [[nodiscard]] bool IsDND() const; + + Notifier m_notifier; + std::map<Snowflake, std::vector<Snowflake>> m_chan_notifications; +}; |