diff options
Diffstat (limited to 'discord/sticker.hpp')
-rw-r--r-- | discord/sticker.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/discord/sticker.hpp b/discord/sticker.hpp new file mode 100644 index 0000000..e510800 --- /dev/null +++ b/discord/sticker.hpp @@ -0,0 +1,28 @@ +#pragma once +#include <optional> +#include <string> +#include "snowflake.hpp" +#include "json.hpp" + +// unstable + +enum class StickerFormatType { + PNG = 1, + APNG = 2, + LOTTIE = 3, +}; + +struct Sticker { + Snowflake ID; + Snowflake PackID; + std::string Name; + std::string Description; + std::optional<std::string> Tags; + std::optional<std::string> AssetHash; + std::optional<std::string> PreviewAssetHash; + StickerFormatType FormatType; + + friend void from_json(const nlohmann::json &j, Sticker &m); + + std::string GetURL() const; +}; |