diff --git a/src/modules/utility.js b/src/modules/utility.js index 17924c2..d679485 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -816,7 +816,7 @@ presence.callback = async function (msg, line) { const smallImage = await fetch(smallUrl) .then((res) => res.arrayBuffer()) .then((b) => Buffer.from(b)); - const smallImageBuffer = sharp(smallImage) + const smallImageBuffer = await sharp(smallImage) .resize(20, 20) .toBuffer(); @@ -829,7 +829,7 @@ presence.callback = async function (msg, line) { } files.push({ - content: presenceImage.toBuffer(), + content: await presenceImage.toBuffer(), name: `${index}.png`, }); embed.thumbnail = {