upgrade help command

This commit is contained in:
Tutur33
2024-02-17 00:58:16 +01:00
parent 9a125531ad
commit 7b64e53eae
+8 -3
View File
@@ -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()