mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
remove unneccesary type
This commit is contained in:
parent
6020e938f1
commit
1302a1c7fc
1 changed files with 1 additions and 3 deletions
|
@ -36,11 +36,9 @@ interface Sticker {
|
|||
type: number;
|
||||
}
|
||||
|
||||
type Data = Sticker;
|
||||
|
||||
const StickerExt = [, "png", "png", "json", "gif"] as const;
|
||||
|
||||
function getUrl(data: Data) {
|
||||
function getUrl(data: Sticker) {
|
||||
if (data.format_type === 4)
|
||||
return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.gif?size=4096&lossless=true`;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue