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

Add denied/allowed permissions to PermissionOverwrites #1562

Merged
merged 5 commits into from
Jun 7, 2017

Conversation

FireController1847
Copy link
Contributor

@FireController1847 FireController1847 commented Jun 4, 2017

Please describe the changes this PR makes and why it should be merged:
At the moment, on the docs, it lacks any documentation on how to get permissions from the PermissionOverwrites. I'm not very good at this, and if I need to change something please tell me, but this is my attempt to add support for the allowed/denied permissions on PermissionOverwrites.

Semantic versioning classification:

  • This PR changes the library's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

@devsnek
Copy link
Member

devsnek commented Jun 4, 2017

tbh i would change the private props to _allowed and _denied and then change the public ones to allowed and denied

This could possible break if people use deny/allow, I assume, but that's okay.
@FireController1847
Copy link
Contributor Author

@devsnek 👍

@iCrawl
Copy link
Member

iCrawl commented Jun 6, 2017

"Thanks Crawl for fixing my derp" said @FireController1847 never 🤣

Make sure if you rename stuff, to rename all occasions.

@FireController1847
Copy link
Contributor Author

FireController1847 commented Jun 6, 2017

Oh shiz yeah thanks lmao

@iCrawl iCrawl merged commit 1e47cfd into discordjs:master Jun 7, 2017
iCrawl pushed a commit that referenced this pull request Jun 16, 2017
…relevant property names as of #1562 (#1570)

* using correct properties to apply permissionOverwrites

and fixed `GuildChannel#clone`

* also arrays should be mapped and correct properties taking priority

* changed .deny and .allow to .denied and .allowed respectively

* whoops
Ratismal pushed a commit to Ratismal/discord.js that referenced this pull request Jul 5, 2017
* Add denied/allowed permissions to PermissionOverwrites

* Remove one accidental trailing space.

* Change to _denied/_allowed & denied/allowed

This could possible break if people use deny/allow, I assume, but that's okay.

* Update PermissionOverwrites.js

* Update PermissionOverwrites.js
Ratismal pushed a commit to Ratismal/discord.js that referenced this pull request Jul 5, 2017
…relevant property names as of discordjs#1562 (discordjs#1570)

* using correct properties to apply permissionOverwrites

and fixed `GuildChannel#clone`

* also arrays should be mapped and correct properties taking priority

* changed .deny and .allow to .denied and .allowed respectively

* whoops
@FireController1847 FireController1847 deleted the patch-1 branch July 28, 2017 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants