diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-11 04:36:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 04:36:27 +0000 |
commit | 44ab35dfd591c4c357673cc2ce3cb3a6964a1fff (patch) | |
tree | 91a60f1dfdd9d5a7e1c88b0eef0990981a307ada /src/notifications/notifications.hpp | |
parent | 0b663246809519487c155c51ccebb8df0e14a227 (diff) | |
parent | f5228d91d28e39d56c7245ecf0128895273c9ec0 (diff) | |
download | abaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.tar.gz abaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.zip |
Merge pull request #145 from uowuo/notifications
Notifications
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; +}; |