Comments (6)
might as well just throw in an enum
CommandBuilder#setRequiredRoles(RequiredRole role, String...)
where options are
RequiredRole.ANY
RequiredRole.ALL
from jda-utilities.
Yeah, CommandBuilder#setRequiredRoles(String...)
or CommandBuilder#setRequiredRoles(Role...)
sounds like a good idea. Why not considering making a PR for that? It is kinda a breaking change so better wait for jag or somebody to confirm that tho.
from jda-utilities.
The concept of a required role is a very basic one; if you need more fine-tuned permissions, I would recommend writing your specifically-needed permissions checks into a Category.
from jda-utilities.
Yeah it's what I have done, I even started to write that in the API, I can pull request you if you want.
from jda-utilities.
I don't really think it would be good to replace the base system we have now because it would be confusing whether a user was required to have all of the required roles or any of the required roles.
from jda-utilities.
Oh yeah, I did not thinked about that, well, personally it's more convenient to check if the user have any of the roles. And why not just creating both of them and commenting them to describe to avoid that to happen ?
from jda-utilities.
Related Issues (20)
- Wrong Boolean Logic
- help command doesn't show any commands HOT 6
- Cannot get all members of the guild HOT 2
- When using Emotes ButtonMenu does not respond to reactions HOT 2
- Fix imports to new version JDA HOT 4
- Doesn't work at all. HOT 10
- [Bug] Latest version JAR still uses net.dv8tion.jda.core instead of net.dv8tion.jda.api. HOT 7
- Paginator reaction buttons don't work. HOT 1
- [Feature] Support for >2 prefixes + mention prefixes HOT 5
- JDA Refactoring
- No documentation on writing tests
- Migrate to something else than Bintray HOT 7
- Command just doesnt Work HOT 1
- Commands dont Work HOT 9
- ButtonMenu.Builder.build().display() does not work HOT 1
- Please update the JDA Version to 4.3.0 HOT 1
- Move to Maven Central HOT 5
- feature proposal
- [Proposal] new featrue HOT 3
- replit Code Probleme net.dv8tion.jda HOT 6
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 jda-utilities.