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
}
const arguments = command.arguments && command.arguments.slice() || []
const arguments = command.arguments && command.arguments.slice()
if (arguments) {
arguments.forEach((argument, index) => {
if (typeof argument == "object") {
arguments[index] = argument.prototype.name
}
})
}
arguments.forEach((argument, index) => {
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"}`}
embed.addFields(field)