upgrade help

This commit is contained in:
VALOU3336
2024-02-15 21:12:43 +01:00
parent 16335991dc
commit e8f6625710
+2 -3
View File
@@ -41,14 +41,13 @@ module.exports = {
utils: [],
other: [],
};
for (const command of client.commands.values()) {
if (command.category) {
categories[command.category].push({ name: command.name, description: command.description, emote: command.emote, utilisation: command.utilisation});
}
}
let description = 'Sélectionnez une catégorie parmi les options ci-dessous pour obtenir de l\'aide sur les commandes correspondantes.\n\n';
let totalCommands = client.commands.size;
let description = `Sélectionnez une catégorie parmi les options ci-dessous pour obtenir de l'aide sur les commandes correspondantes.\n Il y a ${totalCommands} commandes disponibles\n\n`;
for (const [category, commands] of Object.entries(categories)) {
description += `**Catégorie ${category}**\n`;