Process of format fixing

This commit is contained in:
2024-01-19 21:36:01 +01:00
parent ee217d5f64
commit 3eed20e788
77 changed files with 1079 additions and 1086 deletions

View File

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