-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve permission checking Require GuildChannel and Member objects for Guild::user_permissions_in and GuildChannel and Role objects for Guild::role_permissions_in. This makes certain classes of errors impossible. Add variants to ModelError to cover some new cases. * Add methods to PartialGuild Guild::user_permissions_in and Guild::role_permissions_in no longer require any cached information that PartialGuild doesn't also contain, so PartialGuild can share these methods.
- Loading branch information
1 parent
aed3886
commit dbb3669
Showing
7 changed files
with
210 additions
and
165 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
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
Oops, something went wrong.