If can't send embed send it as message
This commit is contained in:
parent
8b889c7210
commit
4c3ea9ec8e
1 changed files with 4 additions and 1 deletions
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue