mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 15:07:26 +02:00
upgrade help command
This commit is contained in:
@@ -27,7 +27,9 @@ module.exports = {
|
||||
.addFields(
|
||||
{ name: 'Utilisation', value: `\`${prefix}${command.utilisation ? `${command.utilisation}` : ''}\``, inline: true },
|
||||
{ name: 'Catégorie', value: command.category || 'Non spécifiée', inline: true }
|
||||
);
|
||||
)
|
||||
.setTimestamp()
|
||||
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})})
|
||||
|
||||
return message.reply({ embeds: [embed_command] });
|
||||
}
|
||||
@@ -41,7 +43,6 @@ module.exports = {
|
||||
game: [],
|
||||
gestion: [],
|
||||
utils: [],
|
||||
other: [],
|
||||
};
|
||||
for (const command of client.commands.values()) {
|
||||
if (command.category) {
|
||||
@@ -63,6 +64,8 @@ module.exports = {
|
||||
.setTitle('📚 Information')
|
||||
.setDescription(description)
|
||||
.setThumbnail(message.guild.iconURL())
|
||||
.setTimestamp()
|
||||
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})})
|
||||
};
|
||||
|
||||
for (const [category, commands] of Object.entries(categories)) {
|
||||
@@ -76,7 +79,9 @@ module.exports = {
|
||||
embeds[category] = new EmbedBuilder()
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`Catégorie ${category}`)
|
||||
.setDescription(description);
|
||||
.setDescription(description)
|
||||
.setTimestamp()
|
||||
.setFooter({text: `${client.user.tag} © 2024`, iconURL: client.user.displayAvatarURL({dynamic: true})})
|
||||
}
|
||||
|
||||
const menu = new StringSelectMenuBuilder()
|
||||
|
||||
Reference in New Issue
Block a user