twilight
twilight copied to clipboard
fix(cache): ResourceType::GUILD required for other resources
Closes: #1553
not the best place to suggest this but how about separating GUILDS to ROLES, NICKS etc?
not the best place to suggest this but how about separating GUILDS to ROLES, NICKS etc?
For roles we already have the ROLE
resource type and nicknames should be covered by the MEMBERS
one.
This PR should include a review of documentation stating that ResourceType::GUILD
is required (For example, InMemoryCachePermissions::in_channel
requires ResourceType::GUILD
for checking if user_id
is the owner, but functions otherwise)