From 98f3c06771dfb095ce98efda2b7224c6e56e9183 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 13 Oct 2018 01:12:20 +0200 Subject: [PATCH] removed sendfiles --- commands/fun/face.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/fun/face.js b/commands/fun/face.js index 34d5b26a..0ef29f45 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -39,8 +39,8 @@ module.exports = class faceappCommand extends Command { message.say('Cant recognize the face') console.error(error) }) - message.channel.sendFile(image) - } else { + return message.channel.send({files: [image]}); + } else { let face = type.toLowerCase(); let { body } = await superagent.get(Attachment[0].url) let image = await faceapp.process(body, face) @@ -48,6 +48,6 @@ module.exports = class faceappCommand extends Command { message.say('Cant recognize the face') console.error(error) }) - message.channel.sendFile(image) + return message.channel.send({files: [image]}); } }}; \ No newline at end of file