Comments (5)
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.
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.
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.
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.
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)
- docs do not works HOT 2
- build broken HOT 2
- Documentation is not opening HOT 1
- Rename extendables to mixins HOT 1
- Documentation not working HOT 1
- Incorrect Docs Link and subsequent GitHub Link HOT 2
- Settings#update() returns the wrong data
- Unable to see any page from the documentation. HOT 5
- SettingsGateway Type Role with Sqlite Provider returning the wrong id HOT 4
- Reaction handler does not check for DM, causes error
- Module '"discord.js"' has no exported member 'ClientApplication'. HOT 7
- NPM listing is out of date HOT 5
- Broadcast Eval bug
- Message#flags being incompatible
- i18n Friendly
- Klasa SQLProvider class does not check for instanceof MemberGateway in klasa-member-gateway
- Klasa ReactionHandler unstable behavior when messages are deleted HOT 2
- FS-NEXTRA error when interacting with settings. HOT 2
- RichDisplayRunOptions.jump - Allow jumping to info page.
- Bug: Concurrency is broken in Schedule
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klasa.