Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore Missing Cache Items on Permission Checks (#1233)
* Ignore missing cache items on permission checks. When a model's utility-method cannot find the guild or member, it will issue the HTTP-request instead of returning an error. When the gateway intents are missing, it's more efficient to try the HTTP-request and get rejected by Discord instead of performing multiple HTTP-requests to get the member and guild data in the first place. Co-authored-by: Alex M. M. <acdenissk69@gmail.com> Co-authored-by: Alex M. M. <acdenissk69@gmail.com>
- Loading branch information
Showing
13 changed files
with
168 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,5 +170,5 @@ pub enum MembershipState { | |
|
||
enum_number!(MembershipState { | ||
Invited, | ||
Accepted, | ||
Accepted | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,7 +314,7 @@ enum_number!(ChannelType { | |
Voice, | ||
Category, | ||
News, | ||
Store, | ||
Store | ||
}); | ||
|
||
impl ChannelType { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ enum_number!(PremiumTier { | |
Tier0, | ||
Tier1, | ||
Tier2, | ||
Tier3, | ||
Tier3 | ||
}); | ||
|
||
impl PremiumTier { | ||
|
Oops, something went wrong.