discordjs / Commando

Official command framework for discord.js
Apache License 2.0
497 stars 242 forks source link

hidden property doesn't work. #224

Closed scottricity closed 5 years ago

scottricity commented 5 years ago

So I've tried using the hidden property, and the command is still shown in the help command/ command list.

let request = require('node-fetch');

module.exports = class Hentai extends Commando.Command {
    constructor(client){
        super(client, {
            name: 'hentai',
            memberName: 'hentai',
            group: 'nsfw',
            ownerOnly: true,
            description: 'yes',
            nsfw: true,
            hidden: true
        })
    }
    async run(msg){
        let hentai = await request.default('https://nekos.life/api/v2/img/hentai')
        hentai.json().then(body => {
            msg.channel.send({file: body.url})
        })
    }
}
brandonbothell commented 5 years ago

If you're the owner, the command isn't hidden.

scottricity commented 5 years ago

Even for others, it won't work

Gawdl3y commented 5 years ago

The hidden property is only on the master branch. You are likely using the NPM release.