From 9b1bc8f14590db0cf460fd62a7eb856e02a531db Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 30 Aug 2020 22:55:36 -0400 Subject: add ability to edit messages --- discord/objects.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index a8bf082..e4b40b4 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -424,3 +424,11 @@ struct CreateMessageObject { friend void to_json(nlohmann::json &j, const CreateMessageObject &m); }; + +struct MessageEditObject { + std::string Content; // opt, null + std::vector Embeds; // opt, null + int Flags = -1; // opt, null + + friend void to_json(nlohmann::json &j, const MessageEditObject &m); +}; -- cgit v1.2.3