mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Hide hidden commands from README
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user