mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Hide hidden commands from README
This commit is contained in:
@@ -119,7 +119,7 @@ don't grant that permission.
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Total: 361
|
Total: 362
|
||||||
|
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ module.exports = class GenerateCommandsCommand extends Command {
|
|||||||
|
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
const list = this.client.registry.groups
|
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)' : ''}`
|
c => `* **${c.name}:** ${c.description}${c.ownerOnly ? ' (Owner-Only)' : ''}`
|
||||||
).join('\n')}`);
|
).join('\n')}`);
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
|
|||||||
Reference in New Issue
Block a user