diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-07 23:55:54 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-07 23:55:54 -0500 |
commit | 2bcf6828b67a6eb3c2bbff3892ce5ca53d00e713 (patch) | |
tree | 77d706d1d33c92eab7823c415629d14c0b887960 /src/commands/info | |
parent | c3ae31a7539ecb5455df811a2e1d5603beb5c9ae (diff) | |
download | tanzanite-2bcf6828b67a6eb3c2bbff3892ce5ca53d00e713.tar.gz tanzanite-2bcf6828b67a6eb3c2bbff3892ce5ca53d00e713.tar.bz2 tanzanite-2bcf6828b67a6eb3c2bbff3892ce5ca53d00e713.zip |
started working on highlight command
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index e31153b..2383566 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -77,7 +77,10 @@ export default class HelpCommand extends BushCommand { if (command.channel == 'guild' && !message.guild && !args.showHidden) return false; if (command.ownerOnly && !isOwner) return false; if (command.superUserOnly && !isSuperUser) return false; - return !(command.restrictedGuilds?.includes(message.guild?.id ?? '') === false && !args.showHidden); + if (command.restrictedGuilds?.includes(message.guild?.id ?? '') === false && !args.showHidden) return false; + if (command.aliases.length === 0) return false; + + return true; }); const categoryNice = category.id .replace(/(\b\w)/gi, (lc) => lc.toUpperCase()) |