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

feat(Permissions): add checkAdmin to permission overwrite checks #6847

Merged
merged 1 commit into from Oct 16, 2021

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Oct 16, 2021

Please describe the changes this PR makes and why it should be merged:

Similar to Permissions#has etc... There is a (yes niche) use case for knowing the exact permissions for a member or role in a specific channel, given overwrites. This allows for that to happen. It is worth noting that you have to pass this param twice if you are going to use something like Permissions#has on the returned field. Not sure of a good way to prevent that.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@iCrawl iCrawl added this to the Version 13.3 milestone Oct 16, 2021
@iCrawl iCrawl merged commit 7513b45 into discordjs:main Oct 16, 2021
@ckohen ckohen deleted the perms-for-check-admin branch October 16, 2021 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants