summaryrefslogtreecommitdiff
path: root/src/discord/interactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/interactions.cpp')
-rw-r--r--src/discord/interactions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/discord/interactions.cpp b/src/discord/interactions.cpp
new file mode 100644
index 0000000..cc439fc
--- /dev/null
+++ b/src/discord/interactions.cpp
@@ -0,0 +1,11 @@
+#include "interactions.hpp"
+#include "json.hpp"
+#include "abaddon.hpp"
+
+void from_json(const nlohmann::json &j, MessageInteractionData &m) {
+ JS_D("id", m.ID);
+ JS_D("type", m.Type);
+ JS_D("name", m.Name);
+ JS_D("user", m.User);
+ JS_O("member", m.Member);
+}