From cd07c0d604fc30a935384062b275ef2e0b01ffb4 Mon Sep 17 00:00:00 2001 From: entar Date: Wed, 21 May 2025 12:23:25 +0700 Subject: [PATCH] Help handler fix --- commands/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }) })