From 2c11a7ad84ab4d7e7d60cd3e7fad7743cce4f431 Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:04:32 -0400 Subject: [PATCH] Set the default sticker size to 2048 to prevent downscaling, also, time to put this into a second branch --- src/plugins/emoteCloner/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugins/emoteCloner/index.tsx b/src/plugins/emoteCloner/index.tsx index 6db07cbfc..5bc086ce5 100644 --- a/src/plugins/emoteCloner/index.tsx +++ b/src/plugins/emoteCloner/index.tsx @@ -56,7 +56,7 @@ function getUrl(data: Data) { if (data.t === "Emoji") return `${location.protocol}//${window.GLOBAL_ENV.CDN_HOST}/emojis/${data.id}.${data.isAnimated ? "gif" : "png"}`; - return `${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}`; + return `${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.${StickerExt[data.format_type]}?size=2048`; } async function fetchSticker(id: string) { @@ -87,9 +87,6 @@ async function cloneSticker(guildId: string, sticker: Sticker) { body: data, }); - new Logger("EmoteCloner").info("hiiii hi hi hi :3 " + data); - new Logger("EmoteCloner").info("hiiii hi hi hi :3 " + sticker.name); - FluxDispatcher.dispatch({ type: "GUILD_STICKERS_CREATE_SUCCESS", guildId, @@ -165,7 +162,7 @@ async function doClone(guildId: string, data: Sticker | Emoji) { message = JSON.parse(e.text).message; } catch { } - new Logger("EmoteCloner").error("Failed to clone", data.name, "to", guildId, e); + new Logger("EmoteCloner").error("Failed to clone", data.name, "to server ", guildId, e); Toasts.show({ message: "Failed to clone: " + message, type: Toasts.Type.FAILURE,