mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
Set the default sticker size to 2048 to prevent downscaling, also, time to put this into a second branch
This commit is contained in:
parent
570e41b95c
commit
2c11a7ad84
1 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue