merge-requests/5/merge
loicbersier 4 years ago
parent c98a572a02
commit bb6f0590cf

@ -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) {

Loading…
Cancel
Save