From 3abc8b7362e8e1d306ffd66df658131480963d1c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 3 May 2021 17:16:03 -0400 Subject: [PATCH] Fix --- commands/edit-number/math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-number/math.js b/commands/edit-number/math.js index b1bb1938..08e62523 100644 --- a/commands/edit-number/math.js +++ b/commands/edit-number/math.js @@ -30,7 +30,7 @@ module.exports = class MathCommand extends Command { run(msg, { expression }) { try { const evaluated = math.evaluate(expression); - if (typeof result === 'function') return msg.reply('Invalid expression.'); + if (typeof evaluated === 'function') return msg.reply('Invalid expression.'); return msg.reply(evaluated.toString()); } catch { return msg.reply('Invalid expression.');