add command

This commit is contained in:
Tutur33
2024-02-26 14:20:12 +01:00
parent 83c54dc15e
commit 1954c60e0d
4 changed files with 44 additions and 55 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = {
.setTitle(`Aide pour la commande ${command.emote ? ` ${command.emote}` : '🔧'} ${command.name}`)
.setDescription(command.description)
.addFields(
{ name: 'Utilisation', value: `\`${prefix}${command.utilisation ? `${command.utilisation}` : ''}\``, inline: true },
{ name: 'Utilisation', value: `\`${prefix}${command.name}${command.utilisation ? ` ${command.utilisation}` : ''}\``, inline: true },
{ name: 'Catégorie', value: command.category || 'Non spécifiée', inline: true },
{ name: 'Alias', value: command.aliases ? command.aliases.map((alias: string) => `\`${alias}\``).join(', ') : 'Aucun', inline: true },
{ name: 'Permissions', value: `Perm level: ${command.permission}` || 'Indéfini', inline: true },