From eeb8750f9465bf1743f7437786090c7e2575c34b Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Fri, 31 Jan 2025 08:25:27 -0500 Subject: [PATCH] fix things as needed --- src/plugins/copyStickerLinks/index.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/plugins/copyStickerLinks/index.tsx b/src/plugins/copyStickerLinks/index.tsx index e4b8e347b..a174e8bf1 100644 --- a/src/plugins/copyStickerLinks/index.tsx +++ b/src/plugins/copyStickerLinks/index.tsx @@ -36,14 +36,7 @@ interface Sticker { type: number; } -interface Emoji { - t: "Emoji"; - id: string; - name: string; - isAnimated: boolean; -} - -type Data = Emoji | Sticker; +type Data = Sticker; const StickerExt = [, "png", "png", "json", "gif"] as const; @@ -51,7 +44,7 @@ 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`; - return "oops Couldnt get it sorry boss"; + return ""; } async function fetchSticker(id: string) { @@ -83,7 +76,6 @@ function buildMenuItem(type: "Sticker", fetchData: () => Promisable