diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-07 02:41:49 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-07 02:41:49 -0500 |
commit | 8cf95fce0cb233125334482149c2c9f4219da52b (patch) | |
tree | c0c2e267385363e0f87ad4c80d299c08d33a33a9 /discord/emoji.hpp | |
parent | 2d6c4cd50d0075c064641150dcf65e6b58d5bf36 (diff) | |
download | abaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.tar.gz abaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.zip |
improve build process, add github actions
Diffstat (limited to 'discord/emoji.hpp')
-rw-r--r-- | discord/emoji.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::vector<Snowflake>> Roles; - std::optional<User> Creator; // only reliable to access ID + std::optional<UserData> Creator; // only reliable to access ID std::optional<bool> NeedsColons; std::optional<bool> IsManaged; std::optional<bool> IsAnimated; std::optional<bool> 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"); |