diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index 116c193..0c5b247 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -187,7 +187,7 @@ async function findSuitableImage(msg) { out.video = true; out.attachment = true; out.url = "attachment://thumb.jpg"; - out.file = await fetch(attachment.proxy_url) + out.file = await fetch(attachment.proxyURL + "?format=jpeg") .then((res) => res.arrayBuffer()) .then((buf) => Buffer.from(buf)); } @@ -201,7 +201,7 @@ async function findSuitableImage(msg) { } else if (embed.video) { out.video = true; out.url = "attachment://thumb.jpg"; - out.file = await fetch(embed.video.proxy_url) + out.file = await fetch(embed.video.proxyURL + "?format=jpeg") .then((res) => res.arrayBuffer()) .then((buf) => Buffer.from(buf)); break;