summaryrefslogtreecommitdiff
path: root/src/discord/webhook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/webhook.cpp')
-rw-r--r--src/discord/webhook.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/discord/webhook.cpp b/src/discord/webhook.cpp
new file mode 100644
index 0000000..4e8b422
--- /dev/null
+++ b/src/discord/webhook.cpp
@@ -0,0 +1,13 @@
+#include "webhook.hpp"
+
+void from_json(const nlohmann::json &j, WebhookData &m) {
+ JS_D("id", m.ID);
+ JS_D("type", m.Type);
+ JS_O("guild_id", m.GuildID);
+ JS_D("channel_id", m.ChannelID);
+ JS_O("user", m.User);
+ JS_N("name", m.Name);
+ JS_N("avatar", m.Avatar);
+ JS_O("token", m.Token);
+ JS_N("application_id", m.ApplicationID);
+}