From 206ec38659fda21b0df02cf86e0e456cfecef6e6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 6 Mar 2021 12:33:27 -0500 Subject: [PATCH] Fix --- commands/edit-image/eyes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/eyes.js b/commands/edit-image/eyes.js index d5b430f8..57b6bbd8 100644 --- a/commands/edit-image/eyes.js +++ b/commands/edit-image/eyes.js @@ -41,7 +41,7 @@ module.exports = class EyesCommand extends Command { const faces = await this.detect(imgData); if (!faces) return msg.reply('There are no faces in this image.'); if (faces === 'size') return msg.reply('This image is too large.'); - const base = await loadImage(imgData); + const base = await loadImage(imgData.body); const canvas = createCanvas(base.width, base.height); const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0);