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

feat!: Remove restricted channels check #101

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

swarley
Copy link
Member

@swarley swarley commented Nov 6, 2021

Summary

We currently have an internal blacklist setup to prevent accessing a channel we don't have permission to see, but we never purge this cache so it's becoming an issue.

In the future it may be desirable to dynamically track this through every event associated with channel visibility (there are many). However for the time being removing this check entirely is the best course of action.


Changed

Cache#channel - No longer maintains a cache of channels that have returned a 403

@swarley swarley added the bug Something isn't working label Nov 6, 2021
@swarley swarley merged commit 42c6e9a into shardlab:main Nov 7, 2021
@swarley swarley deleted the feat!/remove-restricted-channels branch November 7, 2021 23:16
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
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.

1 participant