This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user