From a51a54bc5979a2491f152abc47ad54e6b63f27c8 Mon Sep 17 00:00:00 2001 From: Dylam De La Torre Date: Tue, 23 Nov 2021 05:21:56 +0100 Subject: Restructure source and resource files (#46) importantly, res is now res/res and css is now res/css --- discord/emoji.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 discord/emoji.hpp (limited to 'discord/emoji.hpp') diff --git a/discord/emoji.hpp b/discord/emoji.hpp deleted file mode 100644 index 156e127..0000000 --- a/discord/emoji.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include -#include -#include "json.hpp" -#include "snowflake.hpp" -#include "user.hpp" - -struct EmojiData { - Snowflake ID; // null - std::string Name; // null (in reactions) - std::optional> Roles; - 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, EmojiData &m); - friend void to_json(nlohmann::json &j, const EmojiData &m); - - std::string GetURL(const char *ext = "png", const char *size = nullptr) const; - static std::string URLFromID(const std::string &emoji_id, const char *ext = "png", const char *size = nullptr); - static std::string URLFromID(Snowflake emoji_id, const char *ext = "png", const char *size = nullptr); - static std::string URLFromID(const Glib::ustring &emoji_id, const char *ext = "png", const char *size = nullptr); -}; -- cgit v1.2.3