This is getting annoying

This commit is contained in:
Dragon Fire
2020-05-31 12:20:09 -04:00
parent 0901099d98
commit 1ee5da8c65
+1
View File
@@ -75,6 +75,7 @@ module.exports = class MemeGenModernCommand extends Command {
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
return msg.say({ files: [{ attachment, name: 'modern-meme-gen.png' }] });
} catch (err) {
throw err;
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}