summaryrefslogtreecommitdiff
path: root/src/notifications/notifications.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-04-13 16:29:56 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-04-13 16:29:56 -0400
commitc084230767053e942b29941a8728f421e256cf1d (patch)
treeae58dc5d3978930ec5ed1fb0e65d108b56369d42 /src/notifications/notifications.hpp
parent7b5dc8a86532cf00ab49a1922dbd4ce21cdaf01f (diff)
parent44ab35dfd591c4c357673cc2ce3cb3a6964a1fff (diff)
downloadabaddon-portaudio-c084230767053e942b29941a8728f421e256cf1d.tar.gz
abaddon-portaudio-c084230767053e942b29941a8728f421e256cf1d.zip
Merge branch 'master' of https://github.com/uowuo/abaddon into voice
Diffstat (limited to 'src/notifications/notifications.hpp')
-rw-r--r--src/notifications/notifications.hpp23
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;
+};