ExpressionCloner: fix cloning animated emojis

This commit is contained in:
Vendicated 2026-01-24 02:53:30 +01:00
parent 28b40534d1
commit e03bb9a6e6
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -74,9 +74,9 @@ function getGuildMaxStickerSlots(guild: Guild) {
function getUrl(data: Data, size: number) {
if (data.t === "Emoji")
return `${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${data.id}.webp?size=${size}&lossless=true`;
return `${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${data.id}.webp?size=${size}&lossless=true&animated=true`;
return `${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExtMap[data.format_type]}?size=${size}&lossless=true`;
return `${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExtMap[data.format_type]}?size=${size}&lossless=true&animated=true`;
}
async function fetchSticker(id: string) {