Skip to content
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

Implement Display for Permissions #939

Merged
merged 5 commits into from
Aug 23, 2020
Merged

Conversation

AriusX7
Copy link
Contributor

@AriusX7 AriusX7 commented Aug 23, 2020

Implements #932.

I wrote the get_permission_names method by hand first but decided to use a macro later to make it easier to add new permissions.

For the USE_VAD permission, I used "Use Voice Activity" as the name as it's used by Discord on the Developer Portal. Similarly, I used the name used on the portal for the MENTION_EVERYONE permission. It is called "Mention @everyone, @here, and All Roles" in the app.

src/model/permissions.rs Outdated Show resolved Hide resolved
src/model/permissions.rs Outdated Show resolved Hide resolved
src/model/permissions.rs Outdated Show resolved Hide resolved
@arqunis arqunis added enhancement An improvement to Serenity. model Related to the `model` module. labels Aug 23, 2020
@arqunis arqunis merged commit 1eb2714 into serenity-rs:current Aug 23, 2020
arqunis pushed a commit to arqunis/serenity that referenced this pull request Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to Serenity. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants