i hate force merging

This commit is contained in:
byeoon 2025-02-04 21:46:46 -05:00
parent fede0e4194
commit b96d8d0692

View file

@ -41,10 +41,10 @@ type Data = Sticker;
const StickerExt = [, "png", "png", "json", "gif"] as const; const StickerExt = [, "png", "png", "json", "gif"] as const;
function getUrl(data: Data) { function getUrl(data: Data) {
if (data.t === "Sticker") 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=2048&lossless=true`; return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}?size=4096&lossless=true`;
return ""; return "https://cdn.discordapp.com";
} }
async function fetchSticker(id: string) { async function fetchSticker(id: string) {