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