diff --git a/commands/base.js b/commands/base.js index d39786e..19ecc41 100644 --- a/commands/base.js +++ b/commands/base.js @@ -25,7 +25,7 @@ module.exports = [ return // Go to next command if this one shouldnt show up } - const arguments = command.arguments.slice() + const arguments = command.arguments && command.arguments.slice() || [] arguments.forEach((argument, index) => { if (typeof argument == "object") { @@ -33,7 +33,7 @@ module.exports = [ } }) - const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${command.arguments || "None"}`} + const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${arguments || "None"}`} embed.addFields(field) }) })