mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
i hate force merging
This commit is contained in:
parent
fede0e4194
commit
b96d8d0692
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue