diff --git a/commands/numedit/math.js b/commands/numedit/math.js index 22f833dd..d7863db0 100644 --- a/commands/numedit/math.js +++ b/commands/numedit/math.js @@ -30,7 +30,7 @@ module.exports = class MathCommand extends Command { const expression = args.expression; try { const solved = math.eval(expression); - return message.say(solved).catch(err => message.say(':x: Error! Invalid statement!')); + return message.say(solved).catch(() => message.say(':x: Error! Invalid statement!')); } catch (err) { return message.say(':x: Error! Invalid statement!'); diff --git a/commands/textedit/cowsay.js b/commands/textedit/cowsay.js index f1c6f759..596b7884 100644 --- a/commands/textedit/cowsay.js +++ b/commands/textedit/cowsay.js @@ -26,6 +26,6 @@ module.exports = class CowsayCommand extends Command { text: turnToCowsay, e: 'oO', T: 'U ' - })).catch(error => message.say(':x: Error! Perhaps the content is too long?')); + })).catch(() => message.say(':x: Error! Perhaps the content is too long?')); } };