diff --git a/commands/fun/face.js b/commands/fun/face.js index 34d5b26..0ef29f4 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