kursadzija
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 24s

This commit is contained in:
2025-08-27 16:53:17 +02:00
parent d163a03225
commit 3bfd995e3a
14 changed files with 53 additions and 18 deletions

View File

@ -17,7 +17,11 @@ exports.run = (client, message, args) => {
client.prefix
)
);
if (cmd.hidden && message.author.id != client.ownerID) return;
if (
(cmd.hidden && message.author.id != client.ownerID) ||
cmd.description == "alias"
)
return;
embed.setTitle(`Help for \`${cmd.name}\` command`);
embed.setDescription(cmd.description);
embed.addFields(
@ -34,7 +38,11 @@ exports.run = (client, message, args) => {
[...client.commands.values()]
.sort((a, b) => (a.name > b.name ? 1 : -1))
.forEach((cmd) => {
if (cmd.hidden && message.author.id != client.ownerID) return;
if (
(cmd.hidden && message.author.id != client.ownerID) ||
cmd.isAlias
)
return;
embed.addFields({
name: cmd.name,
value: cmd.description.replaceAll(