diff --git a/commands/base.js b/commands/base.js index 5bd21b6..f067d6f 100644 --- a/commands/base.js +++ b/commands/base.js @@ -30,7 +30,7 @@ module.exports = [ if (arguments) { arguments.forEach((argument, index) => { console.log(typeof argument) - if (typeof argument == "object") { + if (typeof argument == "object" || typeof argument == "function") { arguments[index] = argument.prototype.name } })