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: rescue from internal errors instead of rest-client #106

Merged
merged 1 commit into from
Nov 21, 2021

Conversation

swarley
Copy link
Member

@swarley swarley commented Nov 21, 2021

Summary

When migrating to v8 we bubbled up better-formatted errors based on the code provided from discord. Our cache methods were still rescuing from rest-client scoped errors instead of the discord equivalents.


Changed

Rescue from Discordrb::Errors::Unknown* instead of RestClient::ResourceNotFound

  • Channel#load_message
  • Cache#user
  • Cache#member
  • Cache#channel

@swarley swarley merged commit c855909 into shardlab:main Nov 21, 2021
@swarley swarley deleted the fix/rescue-from-internal-errors branch November 21, 2021 22:25
swarley added a commit that referenced this pull request Nov 28, 2021
* fix: Define path when filename is given to send_file (#92)

* fix: Check roles method instead of role_ids

* refactor: Move View to webhooks (#103)

* refactor: Move View to webhooks
* fix: Use Webhooks::View::COMPONENT_TYPES
* fix: Correct use of positional argument in Webhook#execute
* fix: Add alias with deprecation notice

* feat!: Remove restricted channels check (#101)

* refactor: Use chunk_index and chunk_count to determine chunk status. (#102)

* refactor: Use chunk_index and chunk_count to determine chunk status.

* refactor: additional chunking changes

* fix: apply requested changes

* fix: force guild recache from GUILD_CREATE (#104)

* fix: rescue from internal errors instead of rest-client (#106)

* feat: v4.0 API client WIP

* feat: Add guild endpoints

* feat: webhook endpoints

* feat: Migrate to new API client internally

* refactor: Use faraday in discordrb/webhooks. Switch gateway JSON to use symbols

* refactor: Use faraday in discordrb/webhooks. Switch gateway JSON to use symbols

* refactor!: Remove unsupported API methods

* refactor!: Remove old API methods

* fix: Remove further references to rest-client
@Daniel-Worrall Daniel-Worrall added the bug Something isn't working label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants