Giter VIP home page Giter VIP logo

Comments (5)

Ayfri avatar Ayfri commented on September 21, 2024

You could also unload the commands and use an array of their names to keep track of which are disabled.

from advanced-command-handler.

fantomitechno avatar fantomitechno commented on September 21, 2024

Yes but I mean : when you're creating a command you want that only the devs can use it.
But if we use the OwnerOnly Tag, using an help command on this command that give informations like if it's owner only etc can't know if it's a command disabled or a full time OwnerOnly

from advanced-command-handler.

Ayfri avatar Ayfri commented on September 21, 2024

You can also do this with what I said before.

Also : In v3 all commands will have to be subclasses of the Command class, so you could add the property to some commands and check when required if the property exists and is set to true for example.

from advanced-command-handler.

Ayfri avatar Ayfri commented on September 21, 2024

Close the issue if my response resolves your suggestion ^^

from advanced-command-handler.

Ayfri avatar Ayfri commented on September 21, 2024

Re-open if you want to discuss more about this.

from advanced-command-handler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.