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;