catch
This commit is contained in:
parent
c98a572a02
commit
bb6f0590cf
1 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,10 @@ class posterCommand extends Command {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send('An error just occured! is it a static image?');
|
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) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in a new issue