Comments (5)
It can be used to customize prefixes for each guild, e.g. check the database with the guild ID and return the prefix set
In theory you can add custom prefix handling by subclassing the main bot class right now but I'm planning on moving away from any subclassing specific behaviour that's present in the lib sooner or later so i'll add something like this (although probably gonna consider whether I'll use builder style methods for this rather than putting everything in the init)
from tanjun.
Sry for the late response, been a busy week for me but what exactly is the purpose of this function idea (like what would be done with the result of it)? kind of sounds like a arg parser but i'm not sure i'm quite understand this idea.
from tanjun.
It can be used to customize prefixes for each guild, e.g. check the database with the guild ID and return the prefix set
from tanjun.
BTW as a follow up, this is being implemented by #29 but likely won't be released until 2.1.0 along with slash command support and some refactors to how resources like commands are loaded into to components and the interface (probably also gonna have dependency injection)
from tanjun.
This is now on #master along with other improvements
from tanjun.
Related Issues (20)
- FR: option to infer injected type dependencies from type hints HOT 1
- MessageCommand arg parsing not passing args correctly HOT 2
- '_CommandBuilder' object has no attribute 'description' HOT 4
- FR: Better/more dynamic time handling in cooldown errors HOT 1
- FR: returning autocomplete options
- Incorrect message menu command name validation HOT 2
- Shelex parser shortcomings
- Fix typo HOT 1
- FR: Application LazyConstant
- Parent attribute of subcommand objects return None when loaded their components from another module HOT 2
- FR: Ephemeral CommandError handling HOT 3
- Add a higher level abstraction of creating and syncing commands to a specific guild HOT 2
- Set_auto_defer does not defer with the correct flags HOT 1
- sub command group have issue HOT 3
- Commands with tanjun.with_all_checks(...) raise TypeError on calling
- FR: Match `hikari`'s way of listening for multiple event types
- FR: Positional-only Options Declaration with Defaults
- Client callback feature HOT 1
- Documentation tells a wrong way to listen to events in components.
- Add default localisations for standard responses
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 tanjun.