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