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(errors): error codes #8398

Merged
merged 1 commit into from Jul 30, 2022
Merged

Conversation

didinele
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
You currently can't compare against error.code using the enum. This was an oversight from the error refactor I did a while back.

This is technically breaking (but will just be labeled a patch since as the enum was, no matter how you used it, it basically did nothing), but it's the best thing we can get.

In the future, we'll return back to a proper enum for the error codes.

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

@vercel
Copy link

vercel bot commented Jul 30, 2022

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

Name Status Preview Updated
discord-js ✅ Ready (Inspect) Visit Preview Jul 30, 2022 at 2:01PM (UTC)

@vercel vercel bot temporarily deployed to Preview July 30, 2022 14:01 Inactive
@Jiralite Jiralite added this to the discord.js v14.2 milestone Jul 30, 2022
@iCrawl iCrawl merged commit 480c85c into discordjs:main Jul 30, 2022
@didinele didinele deleted the fix/error-code-enum branch July 30, 2022 18:50
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.

None yet

5 participants