mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
hide non-public command categories on help
This commit is contained in:
parent
9b98c6de95
commit
aebbba9894
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ module.exports = {
|
|||
for(const c of context.commandClient.commands){
|
||||
if(c.name.includes(args.command.toLowerCase()) || c.aliases.filter((f)=>{return f.includes(args.command.toLowerCase())}).length >= 1){
|
||||
if(c.metadata.explicit && !context.channel.nsfw) continue;
|
||||
if(!categories[c.metadata.category] && !context.user.isClientOwner) continue;
|
||||
resultScores[c.name] = 1
|
||||
resultMappings[c.name] = c
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue