From 7b64e53eaedc33e728210353abaf18314b99650e Mon Sep 17 00:00:00 2001 From: Tutur33 Date: Sat, 17 Feb 2024 00:58:16 +0100 Subject: [PATCH] upgrade help command --- commands/utils/help.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/commands/utils/help.js b/commands/utils/help.js index 07aa9b8..5c2e134 100644 --- a/commands/utils/help.js +++ b/commands/utils/help.js @@ -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()