diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-02 17:36:10 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-02 17:36:10 -0500 |
commit | b97722e93775d8778400d42f30299d55682906f1 (patch) | |
tree | e497d0aafa7719208c219d88fc5e3901965be9a9 /discord/sticker.hpp | |
parent | 8efa2024582b0a2aeda72f3e6865a4562717eabc (diff) | |
download | abaddon-portaudio-b97722e93775d8778400d42f30299d55682906f1.tar.gz abaddon-portaudio-b97722e93775d8778400d42f30299d55682906f1.zip |
show non-lottie stickers statically
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; +}; |