From 4c3ea9ec8e7f994e85982eae303158cae75a21e3 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 22 Nov 2019 12:32:08 +0100 Subject: [PATCH] If can't send embed send it as message --- commands/owner/update.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/owner/update.js b/commands/owner/update.js index d96a84a..0baba3e 100644 --- a/commands/owner/update.js +++ b/commands/owner/update.js @@ -22,7 +22,10 @@ class EvalCommand extends Command { const Embed = this.client.util.embed() .addField('stdout', stdout) .addField('stderr', stderr); - message.channel.send({embed: Embed}); + message.channel.send({embed: Embed}) + .catch(() => { + message.channel.send(`stdout: ${stdout}\nstderr: ${stderr}`); + }); console.log(`stdout: ${stdout}`); console.error(`stderr: ${stderr}`); }