From b96d8d0692f3c124ed0044aab58e0914ccdd2190 Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Tue, 4 Feb 2025 21:46:46 -0500 Subject: [PATCH] i hate force merging --- src/plugins/copyStickerLinks/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/copyStickerLinks/index.tsx b/src/plugins/copyStickerLinks/index.tsx index 0a3248f7a..f1b12c629 100644 --- a/src/plugins/copyStickerLinks/index.tsx +++ b/src/plugins/copyStickerLinks/index.tsx @@ -41,10 +41,10 @@ type Data = Sticker; const StickerExt = [, "png", "png", "json", "gif"] as const; function getUrl(data: Data) { - if (data.t === "Sticker") - return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}?size=2048&lossless=true`; + 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 ""; + return "https://cdn.discordapp.com"; } async function fetchSticker(id: string) {