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

Add some sort of handling for cache scenarios which'll lead to cases where entries are never uncached #877

Open
1 task done
FasterSpeeding opened this issue Nov 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@FasterSpeeding
Copy link
Collaborator

FasterSpeeding commented Nov 4, 2021

Summary

Add some sort of handling and documentation around cache scenarios which can lead to common cases where entries are never uncached.

Problem

If you don't have the guild or member intents declared then other cached guild bound entries won't be decached when the bot is removed from a guild.

This may include the following resources:

  • Stickers (not implemented yet)
  • Emojis
  • Integrations (not implemented yet)
  • Invites
  • Voice States
  • Presences
  • Messages (i actually don't know if we clear these on guild delete right now)

Ideal implementation

This may be an error on init or a warning plus documentation around this behaviour.

Checklist

  • I have searched the issue tracker and have made sure it's not a duplicate.
    If it is a follow up of another issue, I have specified it.

Other Information

This extends to threads which cannot be decached when the bot loses access to a guild or channel unless the following cache resources and their relevant intents are enabled:

  • Channels
  • Roles
  • Guild
  • Members (but only the current member matters so the intent isn't important)
@FasterSpeeding FasterSpeeding added the enhancement New feature or request label Nov 4, 2021
@FasterSpeeding FasterSpeeding changed the title Add some sort of handling for cache scenarios which'll lead to edgy cases where entries are never uncached Add some sort of handling for cache scenarios which'll lead to edge cases where entries are never uncached Nov 4, 2021
@FasterSpeeding FasterSpeeding changed the title Add some sort of handling for cache scenarios which'll lead to edge cases where entries are never uncached Add some sort of handling for cache scenarios which'll lead to cases where entries are never uncached Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant