Comments (10)
Uh, this was a thing... If it's broken, that's a bug.
from klasa.
Confirmed bug
from klasa.
this.client.config.prefix
has never been RegExp but string
/string[]
. This suggestion breaks several pieces including SettingGateway. Althought SGv2 will just throw a TypeError.
from klasa.
I'm sure it was a thing in August I remember using it but I could be tripping this might break SGv2 but maybe there could be a RegexPrefix option in KlasaClientConfig so that RegexPrefix is the main prefix that couldn't be overridden aka Hey Skyra, ping
would work always even if you used conf to change the prefix so it is not overridable.
from klasa.
Just like Komada 0.19.7's usage were so bugged the repeator tag was useless and it was capturing from the argument's position to the end (infinite catching), it got fixed in 0.20.0 with Ao's rewrite and that behaviour dissapeared. There has not been an infinite catching feature in Komada, nor in Klasa, although a bug allowed it to exist.
Same happens here with the prefixes, this.client.config.prefix
being a RegExp (but guild prefixes defaulted to string
|string[]
). That was an unintended behaviour that worked due to a bug, but since the bug is now fixed, that does not longer work.
from klasa.
I see
from klasa.
@kyranet What is your opinion on the regexPrefix
option in KlasaClientConfig? I think it would become handy
from klasa.
as mentionPrefix shouldn't be overridden and is only meant for mentionPrefix for the bot...
from klasa.
My opinion is that regexPrefix
is a nice-to-have feature, but most developers will not find it handy. (Keep in mind that RegExp is a feature that many newbie developers find hard to use).
from klasa.
I can agree with it being a nice feature to have and very true that noobie developers dont know the power of Regular expresions
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.