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/sticker.hpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 discord/sticker.hpp (limited to 'discord/sticker.hpp') diff --git a/discord/sticker.hpp b/discord/sticker.hpp deleted file mode 100644 index d23fe7b..0000000 --- a/discord/sticker.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once -#include -#include -#include "snowflake.hpp" -#include "json.hpp" - -// unstable - -enum class StickerFormatType { - PNG = 1, - APNG = 2, - LOTTIE = 3, -}; - -struct StickerData { - Snowflake ID; - Snowflake PackID; - std::string Name; - std::string Description; - std::optional Tags; - std::optional AssetHash; - std::optional PreviewAssetHash; - StickerFormatType FormatType; - - friend void to_json(nlohmann::json &j, const StickerData &m); - friend void from_json(const nlohmann::json &j, StickerData &m); - - std::string GetURL() const; -}; - -struct StickerItem { - StickerFormatType FormatType; - Snowflake ID; - std::string Name; - - friend void to_json(nlohmann::json &j, const StickerItem &m); - friend void from_json(const nlohmann::json &j, StickerItem &m); - - std::string GetURL() const; -}; -- cgit v1.2.3