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

fix: use resolve() for PermissionOverwrites #10686

Merged

Conversation

sdanialraza
Copy link
Member

@sdanialraza sdanialraza commented Jan 4, 2025

Please describe the changes this PR makes and why it should be merged:
This fixes an issue where cache.get() was used because of #10626, causing PermissionOverwrites#resolve to return undefined when overwrite.id may be a Role or User instance. Also updated super.cache.get() to this.cache.get() for clarity.

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

@sdanialraza sdanialraza requested a review from a team as a code owner January 4, 2025 16:25
@sdanialraza sdanialraza requested review from vladfrangu, iCrawl, kyranet and SpaceEEC and removed request for a team January 4, 2025 16:25
Copy link

vercel bot commented Jan 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Jan 4, 2025 4:42pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Jan 4, 2025 4:42pm

Co-authored-by: René <contact.9a5d6388@renegade334.me.uk>
@almeidx almeidx merged commit 7280d4e into discordjs:v14 Jan 4, 2025
7 checks passed
@sdanialraza sdanialraza deleted the fix/use-resolve-permission-overwrites branch January 4, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants