-
Notifications
You must be signed in to change notification settings - Fork 808
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
Add new permissions #1411
Add new permissions #1411
Conversation
The 2 permissions I added in the last commit are no longer undocumented, the PR for that has been merged. |
just a thought, maybe moving all these permissions from structs.go to a new file, like permissions.go? |
structs.go
Outdated
// Allows management and editing of the guil. | ||
PermissionManageServer = 1 << 5 |
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.
// Allows management and editing of the guil. | |
PermissionManageServer = 1 << 5 | |
// Deprecated: PermissionManageServer has been replaced by PermissionManageGuild. | |
PermissionManageServer = 1 << 5 | |
// Allows management and editing of the guild. | |
PermissionManageGuild = 1 << 5 |
10540e6
to
bf8326f
Compare
structs.go
Outdated
PermissionSendVoiceMessages = 1 << 46 | ||
|
||
// Allows sending polls. | ||
PermissionSendPools = 1 << 49 |
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.
💧
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.
Eugh, thanks for catching this
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.
No problem! We all do this sometimes.
bf8326f
to
ac93da5
Compare
First commit makes the numbers bitflags which I find easier to parse and follows all the other flags in the repo. I also added docs for them.
Second commit adds missing flags currently documented at https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
Third commit renames some fields to what they are now called on discords docs page.
Fourth commit adds currently undocumented flags, but there is a pending pr for those at discord/discord-api-docs#6305