This commit is contained in:
loicbersier 2020-02-21 18:36:24 +01:00
parent c98a572a02
commit bb6f0590cf

View file

@ -105,7 +105,10 @@ class posterCommand extends Command {
console.error(err);
return message.channel.send('An error just occured! is it a static image?');
}
return message.channel.send({files: [output]});
return message.channel.send({files: [output]})
.catch(() => {
return message.channel.send('The image is too big to fit on discord!');
});
});
if (err) {