-
-
Couldn't load subscription status.
- Fork 187
feat: added missing permissions #1501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for dpp-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
We should really rewrite how our permissions work at some point, having to keep making functions to check a permission is rather annoying and overly repetitive. I've got an idea on what we can do, I'll make a draft PR with it soon to see what we think. |
| bool role::has_use_soundboard() const { | ||
| return has_administrator() || permissions.has(p_use_soundboard); | ||
| } | ||
| bool role::has_create_guild_expressions() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need space between functions.
include/dpp/role.h
Outdated
| * | ||
| * @note Having the administrator permission causes this method to always return true | ||
| * Channel specific overrides may apply to permissions. | ||
| * @return bool True if user has the send polls permission or is administrator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double space after the send polls
This PR adds the missing permissions listed on discord's docs
Code change checklist