summaryrefslogtreecommitdiff
path: root/src/discord/objects.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2025-01-30 19:57:15 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2025-01-30 19:57:15 -0500
commiteb9a519b12dd48c1d562029c082ecbaf754b7086 (patch)
tree922cacf1ca27f96cc495c673c2789271dd702c40 /src/discord/objects.cpp
parent15751fda06b742a293f94f5727ac1aa83221855f (diff)
downloadabaddon-portaudio-eb9a519b12dd48c1d562029c082ecbaf754b7086.tar.gz
abaddon-portaudio-eb9a519b12dd48c1d562029c082ecbaf754b7086.zip
add missing create message fields
Diffstat (limited to 'src/discord/objects.cpp')
-rw-r--r--src/discord/objects.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp
index 1af32a7..0742dca 100644
--- a/src/discord/objects.cpp
+++ b/src/discord/objects.cpp
@@ -315,6 +315,8 @@ void to_json(nlohmann::json &j, const CreateMessageAttachmentObject &m) {
void to_json(nlohmann::json &j, const CreateMessageObject &m) {
j["content"] = m.Content;
j["flags"] = m.Flags;
+ j["mobile_network_type"] = m.MobileNetworkType;
+ j["tts"] = m.IsTTS;
JS_IF("attachments", m.Attachments);
JS_IF("message_reference", m.MessageReference);
JS_IF("nonce", m.Nonce);