fix animated gifs i hope

This commit is contained in:
byeoon 2025-02-04 21:50:32 -05:00
parent b96d8d0692
commit 1df4c4de4e

View file

@ -44,7 +44,7 @@ function getUrl(data: Data) {
if (data.format_type === 1 || data.format_type === 3) if (data.format_type === 1 || data.format_type === 3)
return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}?size=4096&lossless=true`; return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}?size=4096&lossless=true`;
return "https://cdn.discordapp.com"; return `https://cdn.discordapp.com/stickers/${data.id}.${StickerExt[data.format_type]}?size=4096&lossless=true`;
} }
async function fetchSticker(id: string) { async function fetchSticker(id: string) {