Help handler fix

This commit is contained in:
entar 2025-05-21 12:23:25 +07:00
parent dbc45d4a42
commit cd07c0d604

View File

@ -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)
})
})