From f5e912fbd84051f162c6cb3e94c249e8a14331ef Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Sat, 11 Mar 2017 13:41:12 -0500 Subject: [PATCH] Error Catching in Meme --- commands/imageedit/meme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/imageedit/meme.js b/commands/imageedit/meme.js index 6af3308d..23b2e2a3 100644 --- a/commands/imageedit/meme.js +++ b/commands/imageedit/meme.js @@ -36,7 +36,7 @@ class MemeCommand extends commando.Command { message.channel.sendMessage(":x: Error! Top text is over 100 characters!"); } else { if(memecodes.memecodes[type]) { - message.channel.sendFile(link); + message.channel.sendFile(link).catch(error => message.channel.sendMessage(":x: An Error Occurred! Please try again later!")); } else { message.channel.sendMessage(":x: Error! Meme type not found! (View list with ;meme list)"); }