From 00e90222a90779925310388848bea9feaf1befc9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:28:50 -0400 Subject: [PATCH] Fix --- commands/edit-face/eyes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-face/eyes.js b/commands/edit-face/eyes.js index 5b9e98bf..bbfc06b7 100644 --- a/commands/edit-face/eyes.js +++ b/commands/edit-face/eyes.js @@ -27,7 +27,7 @@ module.exports = class EyesCommand extends Command { async run(msg, { image }) { const eyes = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'eyes.png')); const imgData = await request.get(image); - const faces = await this.client.detectFaces(imgData); + const faces = await this.client.detectFaces(imgData.body); 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.body);