mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-07 23:04:47 +02:00
fix bug : le niveau de permission aux commandes d'aide
This commit is contained in:
@@ -25,7 +25,8 @@ module.exports = {
|
||||
return message.reply(`Je n'ai pas trouvé de commande nommée "${args[0]}".`);
|
||||
}
|
||||
|
||||
|
||||
const commandPerm = await permissions[command.name];
|
||||
|
||||
const embed_command = new EmbedBuilder()
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`Aide pour la commande ${command.emote ? ` ${command.emote}` : '🔧'} ${command.name}`)
|
||||
@@ -34,12 +35,12 @@ module.exports = {
|
||||
{ name: 'Utilisation', value: `\`${prefix}${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 => `\`${alias}\``).join(', ') : 'Aucun', inline: true },
|
||||
{ name: 'Permissions', value: permissions[command.name] || 'Indéfini', inline: true }
|
||||
{ name: 'Permissions', value: `Perm level: ${commandPerm}` || 'Indéfini', inline: true },
|
||||
)
|
||||
.setTimestamp()
|
||||
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})})
|
||||
|
||||
return message.reply({ embeds: [embed_command] });
|
||||
|
||||
return message.reply({ embeds: [embed_command] });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user