From eb9a519b12dd48c1d562029c082ecbaf754b7086 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 30 Jan 2025 19:57:15 -0500 Subject: add missing create message fields --- src/discord/objects.cpp | 2 ++ src/discord/objects.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/discord') 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); diff --git a/src/discord/objects.hpp b/src/discord/objects.hpp index fb5e117..7135f99 100644 --- a/src/discord/objects.hpp +++ b/src/discord/objects.hpp @@ -448,6 +448,8 @@ struct CreateMessageAttachmentObject { struct CreateMessageObject { std::string Content; MessageFlags Flags = MessageFlags::NONE; + bool IsTTS = false; + std::string MobileNetworkType = "unknown"; std::optional MessageReference; std::optional Nonce; std::optional> Attachments; -- cgit v1.2.3