summaryrefslogtreecommitdiff
path: root/src/discord/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/message.cpp')
-rw-r--r--src/discord/message.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/message.cpp b/src/discord/message.cpp
index bc4c6c8..8a0e271 100644
--- a/src/discord/message.cpp
+++ b/src/discord/message.cpp
@@ -128,6 +128,7 @@ void to_json(nlohmann::json &j, const AttachmentData &m) {
j["proxy_url"] = m.ProxyURL;
JS_IF("height", m.Height);
JS_IF("width", m.Width);
+ JS_IF("description", m.Description);
}
void from_json(const nlohmann::json &j, AttachmentData &m) {
@@ -138,6 +139,7 @@ void from_json(const nlohmann::json &j, AttachmentData &m) {
JS_D("proxy_url", m.ProxyURL);
JS_ON("height", m.Height);
JS_ON("width", m.Width);
+ JS_ON("description", m.Description);
}
void from_json(const nlohmann::json &j, MessageReferenceData &m) {