Process of format fixing
This commit is contained in:
@@ -24,7 +24,7 @@ export = {
|
||||
const commandRawList = client.commands.map(command => {
|
||||
return {
|
||||
name: command.name,
|
||||
command: command,
|
||||
command: command
|
||||
}
|
||||
})
|
||||
|
||||
@@ -34,22 +34,22 @@ export = {
|
||||
if (!command.command.subcommands && command.command.public) {
|
||||
commandList.push({
|
||||
name: "**/" + commandName + "**",
|
||||
value: "`" + command.command.description + "`",
|
||||
value: "`" + command.command.description + "`"
|
||||
})
|
||||
} else if (command.command.subcommands && command.command.public) {
|
||||
const subcommands = command.command.data.options.map(
|
||||
subcommand => {
|
||||
return {
|
||||
name: commandName + " " + subcommand.toJSON().name,
|
||||
description: subcommand.toJSON().description,
|
||||
description: subcommand.toJSON().description
|
||||
}
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
for (const subcommand of subcommands) {
|
||||
commandList.push({
|
||||
name: "**/" + subcommand.name + "**",
|
||||
value: "`" + subcommand.description + "`",
|
||||
value: "`" + subcommand.description + "`"
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -65,14 +65,14 @@ export = {
|
||||
fields: commandList,
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.guild!.iconURL() || "",
|
||||
url: interaction.guild!.iconURL() || ""
|
||||
},
|
||||
footer: {
|
||||
icon_url: interaction.guild!.iconURL() || undefined,
|
||||
text: interaction.guild!.name + " | " + devMessage,
|
||||
},
|
||||
},
|
||||
],
|
||||
text: interaction.guild!.name + " | " + devMessage
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
}
|
||||
} as Command
|
||||
|
||||
Reference in New Issue
Block a user