From 8cf95fce0cb233125334482149c2c9f4219da52b Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 7 Jan 2021 02:41:49 -0500 Subject: improve build process, add github actions --- discord/message.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'discord/message.hpp') diff --git a/discord/message.hpp b/discord/message.hpp index bba6115..d89045b 100644 --- a/discord/message.hpp +++ b/discord/message.hpp @@ -145,7 +145,7 @@ struct MessageReferenceData { struct ReactionData { int Count; bool HasReactedWith; - Emoji Emoji; + EmojiData Emoji; friend void from_json(const nlohmann::json &j, ReactionData &m); friend void to_json(nlohmann::json &j, const ReactionData &m); @@ -166,15 +166,15 @@ struct Message { Snowflake ID; Snowflake ChannelID; std::optional GuildID; - User Author; + UserData Author; // std::optional Member; std::string Content; std::string Timestamp; std::string EditedTimestamp; // null bool IsTTS; bool DoesMentionEveryone; - std::vector Mentions; // full user accessible - // std::vector MentionRoles; + std::vector Mentions; // full user accessible + // std::vector MentionRoles; // std::optional> MentionChannels; std::vector Attachments; std::vector Embeds; @@ -183,11 +183,11 @@ struct Message { bool IsPinned; std::optional WebhookID; MessageType Type; - // std::optional Activity; + // std::optional ActivityData; std::optional Application; std::optional MessageReference; std::optional Flags = MessageFlags::NONE; - std::optional> Stickers; + std::optional> Stickers; std::optional> ReferencedMessage; // has_value && null means deleted friend void from_json(const nlohmann::json &j, Message &m); -- cgit v1.2.3