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

refactor: use cache.get() for snowflakes, resolve() otherwise #10626

Merged

Conversation

sdanialraza
Copy link
Contributor

@sdanialraza sdanialraza commented Nov 28, 2024

Please describe the changes this PR makes and why it should be merged:
This makes it consistent to use cache.get() for snowflakes and resolve() for everything else.

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

Copy link

vercel bot commented Nov 28, 2024

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 Nov 28, 2024 5:44pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 5:44pm

didinele
didinele previously approved these changes Nov 28, 2024
Copy link
Member

@didinele didinele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surely this won't somehow break anything

@sdanialraza sdanialraza force-pushed the refactor/consistent-use-resolve-cache-get branch from b63cdb3 to 43a7060 Compare November 28, 2024 15:39
@sdanialraza sdanialraza force-pushed the refactor/consistent-use-resolve-cache-get branch from 43a7060 to 6b65bad Compare November 28, 2024 15:50
@sdanialraza sdanialraza changed the title refactor: consistent use of resolve instead of cache.get() ?? null refactor: use cache.get() for snowflakes, resolve() otherwise Nov 28, 2024
@Jiralite Jiralite added this to the discord.js 15.0.0 milestone Nov 28, 2024
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
@kodiakhq kodiakhq bot merged commit a870bc1 into discordjs:main Nov 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants