From 4915420c90e748ec17be475bf12b8426008f0d55 Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 2 Sep 2022 08:32:51 +0200 Subject: [PATCH] Fix the help command --- commands/utility/help.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/utility/help.js b/commands/utility/help.js index 36255258..2a48fa8a 100644 --- a/commands/utility/help.js +++ b/commands/utility/help.js @@ -85,6 +85,7 @@ export default { const object = { }; for (const command of client.commands.values()) { if (command.category === 'secret') continue; + if (interaction.user.id !== ownerId && command.category === 'owner') continue; if (object[command.category]) { object[command.category].push(command.data.name); } @@ -95,7 +96,7 @@ export default { for (const category in object) { let title; - if (interaction.user.id == ownerId) { + if (interaction.user.id === ownerId) { title = { fun: '🎉\u2000Fun', utility: '🔩\u2000Utility', @@ -110,7 +111,7 @@ export default { admin: '⚡\u2000Admin', }[category]; } - + console.log(title); embed.addFields({ name: title, value: `\`${object[category].join('` `')}\`` }); } return interaction.reply({ embeds: [embed] });