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(DiscordRESTError): properly parse request errors #163

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

Snazzah
Copy link
Contributor

@Snazzah Snazzah commented Sep 17, 2024

Ref https://discord.com/developers/docs/reference#error-messages-request-error

# before
Invalid Form Body
  _errors: [object Object]

# after
Invalid Form Body
  Field "type" is required to determine the model type.

@TTtie TTtie added type: bug Something isn't working scope: REST Issues or pull requests related to REST functionality reason: Discord Issues or pull requests related to Discord's API changes labels Sep 17, 2024
@TTtie TTtie added this to the 0.2.0 milestone Sep 19, 2024
@TTtie TTtie merged commit 67e0eec into projectdysnomia:dev Sep 19, 2024
1 check passed
@Snazzah Snazzah deleted the fix/top-level-error-parsing branch September 19, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reason: Discord Issues or pull requests related to Discord's API changes scope: REST Issues or pull requests related to REST functionality type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants