Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Jaskowicz1
Copy link
Contributor

This PR adds the missing permissions listed on discord's docs

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit 9401048
🔍 Latest deploy log https://app.netlify.com/projects/dpp-dev/deploys/68ea31ada0f9200008de1908
😎 Deploy Preview https://deploy-preview-1501--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added documentation Improvements or additions to documentation code Improvements or additions to code. labels Oct 6, 2025
@Jaskowicz1
Copy link
Contributor Author

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 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need space between functions.

*
* @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.
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code Improvements or additions to code. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.