From bb6f0590cf879f9eac0926816296ae6f05eee644 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 21 Feb 2020 18:36:24 +0100 Subject: [PATCH] catch --- commands/images/poster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/images/poster.js b/commands/images/poster.js index bafca8b..7f534b6 100644 --- a/commands/images/poster.js +++ b/commands/images/poster.js @@ -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) {