summaryrefslogtreecommitdiff
path: root/src/discord/sticker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/sticker.cpp')
-rw-r--r--src/discord/sticker.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/discord/sticker.cpp b/src/discord/sticker.cpp
index b92d031..0b163fc 100644
--- a/src/discord/sticker.cpp
+++ b/src/discord/sticker.cpp
@@ -22,15 +22,6 @@ void from_json(const nlohmann::json &j, StickerData &m) {
JS_D("format_type", m.FormatType);
}
-std::string StickerData::GetURL() const {
- if (!AssetHash.has_value()) return "";
- if (FormatType == StickerFormatType::PNG || FormatType == StickerFormatType::APNG)
- return "https://media.discordapp.net/stickers/" + std::to_string(ID) + "/" + *AssetHash + ".png?size=256";
- else if (FormatType == StickerFormatType::LOTTIE)
- return "https://media.discordapp.net/stickers/" + std::to_string(ID) + "/" + *AssetHash + ".json";
- return "";
-}
-
void to_json(nlohmann::json &j, const StickerItem &m) {
j["id"] = m.ID;
j["name"] = m.Name;