Hide hidden commands from README

This commit is contained in:
Dragon Fire
2020-03-03 17:54:05 -05:00
parent 3cf8ab797c
commit 1606e95ef8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ don't grant that permission.
## Commands
Total: 361
Total: 362
### Utility:
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class GenerateCommandsCommand extends Command {
async run(msg) {
const list = this.client.registry.groups
.map(g => `\n### ${g.name}:\n\n${g.commands.map(
.map(g => `\n### ${g.name}:\n\n${g.commands.filter(c => !c.hidden).map(
c => `* **${c.name}:** ${c.description}${c.ownerOnly ? ' (Owner-Only)' : ''}`
).join('\n')}`);
const { body } = await request