diff --git a/commands/edit-number/math.js b/commands/edit-number/math.js index 27b78fa3..8bcc0c14 100644 --- a/commands/edit-number/math.js +++ b/commands/edit-number/math.js @@ -2,12 +2,12 @@ const Command = require('../../structures/Command'); const core = require('mathjs/number'); const math = core.create(core.all); math.import({ - import: function () { throw new Error('Function import is disabled') }, - createUnit: function () { throw new Error('Function createUnit is disabled') }, - evaluate: function () { throw new Error('Function evaluate is disabled') }, - parse: function () { throw new Error('Function parse is disabled') }, - simplify: function () { throw new Error('Function simplify is disabled') }, - derivative: function () { throw new Error('Function derivative is disabled') } + import: () => { throw new Error('Function import is disabled'); }, + createUnit: () => { throw new Error('Function createUnit is disabled'); }, + evaluate: () => { throw new Error('Function evaluate is disabled'); }, + parse: () => { throw new Error('Function parse is disabled'); }, + simplify: () => { throw new Error('Function simplify is disabled'); }, + derivative: () => { throw new Error('Function derivative is disabled'); } }, { override: true }); module.exports = class MathCommand extends Command {