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/emoji.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/emoji.hpp') diff --git a/discord/emoji.hpp b/discord/emoji.hpp index 7223aa6..1cbc108 100644 --- a/discord/emoji.hpp +++ b/discord/emoji.hpp @@ -5,18 +5,18 @@ #include "snowflake.hpp" #include "user.hpp" -struct Emoji { +struct EmojiData { Snowflake ID; // null std::string Name; // null (in reactions) std::optional> Roles; - std::optional Creator; // only reliable to access ID + std::optional Creator; // only reliable to access ID std::optional NeedsColons; std::optional IsManaged; std::optional IsAnimated; std::optional IsAvailable; - friend void from_json(const nlohmann::json &j, Emoji &m); - friend void to_json(nlohmann::json &j, const Emoji &m); + friend void from_json(const nlohmann::json &j, EmojiData &m); + friend void to_json(nlohmann::json &j, const EmojiData &m); std::string GetURL() const; static std::string URLFromID(std::string emoji_id, std::string ext = "png"); -- cgit v1.2.3