This commit is contained in:
entar 2025-05-21 12:25:47 +07:00
parent cd07c0d604
commit 1eac889fe7

View File

@ -25,13 +25,17 @@ module.exports = [
return // Go to next command if this one shouldnt show up return // Go to next command if this one shouldnt show up
} }
const arguments = command.arguments && command.arguments.slice() || [] const arguments = command.arguments && command.arguments.slice()
arguments.forEach((argument, index) => { if (arguments) {
if (typeof argument == "object") { arguments.forEach((argument, index) => {
arguments[index] = argument.prototype.name if (typeof argument == "object") {
} arguments[index] = argument.prototype.name
}) }
})
}
console.log(arguments)
const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${arguments || "None"}`} const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${arguments || "None"}`}
embed.addFields(field) embed.addFields(field)