Giter Club home page Giter Club logo

Comments (5)

ShayBox avatar ShayBox commented on July 23, 2024

In master, you can use disableCorePieces: ['commands'] in client options to disable all built-in commands, you can transfer what you want to keep enabled.

from klasa.

jellz avatar jellz commented on July 23, 2024

There are ~16 core commands, and only ~2 commands I want to disable. That doesn't seem very ideal. Though it is a possible work around, though. Thanks.

from klasa.

ShayBox avatar ShayBox commented on July 23, 2024

Yeah, it's not a perfect solution, but you're not gonna get an option to disable specific commands only with this framework, they want you to transfer everything :/

from klasa.

bdistin avatar bdistin commented on July 23, 2024

I am not too keen on this idea, since it is one thing to skip walking a directory, but another to do O(n^2) searches on every piece loaded to see if it's not supposed to load, instead of the more OOP way where the piece knows if it should load or not (via the enabled property).

Generally speaking, the preferred way of accomplishing this right now is transferring the piece, disabling it (optionally you can remove everything but the constructor portion of the class), and optionally moving it to a disabled folder, so it's out of sight/out of mind.

from klasa.

jellz avatar jellz commented on July 23, 2024

But in a disabled folder, it's not exactly out of sight. I understand what you mean in terms of OOP, but you can't change the prop for it without moving it into the working directory.
I don't mind anymore though, I used ShayBox's solution, it's all good now.

from klasa.

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.