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: PermissionOverwriteManager #5318

Merged
merged 33 commits into from Jul 3, 2021
Merged

feat: PermissionOverwriteManager #5318

merged 33 commits into from Jul 3, 2021

Conversation

Extroonie
Copy link
Contributor

@Extroonie Extroonie commented Feb 12, 2021

Please describe the changes this PR makes and why it should be merged:
This PR introduces PermissionOverwriteManager, to manage guild channel permission overwrites and store their cache. This was brought up as an approach to #5234 (comment). It also removes the existing permission overwrite methods from GuildChannel, it is, therefore, semver major. Some of the logic is stolen taken from #5489 and merged here as well.

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)
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
typings/index.d.ts Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
src/managers/PermissionOverwriteManager.js Outdated Show resolved Hide resolved
@iCrawl
Copy link
Member

iCrawl commented May 28, 2021

This needs another rebase.

@Extroonie
Copy link
Contributor Author

@iCrawl done

@iCrawl
Copy link
Member

iCrawl commented May 31, 2021

This needs a rebase.

@Extroonie
Copy link
Contributor Author

@iCrawl done x2

@vladfrangu
Copy link
Member

You wouldn't get this from any other guy, but this needs another rebase 🎶

@Extroonie
Copy link
Contributor Author

@vladfrangu done x3

@kyranet kyranet requested a review from iCrawl June 19, 2021 09:55
src/managers/PermissionOverwriteManager.js Show resolved Hide resolved
src/structures/GuildChannel.js Outdated Show resolved Hide resolved
src/structures/PermissionOverwrites.js Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
src/structures/GuildChannel.js Show resolved Hide resolved
src/structures/GuildChannel.js Show resolved Hide resolved
@kyranet
Copy link
Member

kyranet commented Jul 1, 2021

This needs a rebase + Space's requested changes addressed.

@Extroonie Extroonie requested a review from SpaceEEC July 2, 2021 19:07
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

9 participants