-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
refactor: use cache.get()
for snowflakes, resolve()
otherwise
#10626
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this 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
b63cdb3
to
43a7060
Compare
43a7060
to
6b65bad
Compare
resolve
instead of cache.get() ?? null
cache.get()
for snowflakes, resolve()
otherwise
Co-authored-by: Jiralite <[email protected]>
…0626) * refactor: use `cache.get()` for snowflakes, `resolve()` otherwise * fix: requested changes Co-authored-by: Jiralite <[email protected]> * chore: remove unnecessary `?? null` --------- Co-authored-by: Jiralite <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This change DID indeed break a lot of bots. It might not look like it at a first glance, but the The param type still allows the 😄 But no worries, in the latest version of discord.js is this code already overwritten/modified & now it works again. |
Code talks better! What was the issue? I want to understand what you are talking about. |
Yea, the issue was exactly what is described in pull request #10686 as mentioned by @sdanialraza. The fact that it would return |
We had decoded your message by then! Please open an issue instead of commenting on pull requests in the future with a reproducible code sample next time. |
Please describe the changes this PR makes and why it should be merged:
This makes it consistent to use
cache.get()
for snowflakes andresolve()
for everything else.Status and versioning classification: