-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
[Perms v2] Additional implementations #1303
[Perms v2] Additional implementations #1303
Conversation
Codecov Report
@@ Coverage Diff @@
## permissions-v2 #1303 +/- ##
==================================================
+ Coverage 33.46% 33.52% +0.06%
==================================================
Files 93 93
Lines 17575 17550 -25
==================================================
+ Hits 5881 5884 +3
+ Misses 11694 11666 -28
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
not going to implement gateway events in this PR for now, otherwise it's ready |
* Remove v1 from application commands * Remove permissions v1 from documentation * Add v2 attributes to commands * Fix permissions for groups * Use v2 in as_dict methods * Add new permission decorator * Add missing return * Allow both kwargs and decorators for permissions * Add guild_only decorator * Allow decorating a command * Remove permissions v1 from docs * Fix to_check in get_desynced_commands * merge master into permissions-v2 * Rename has_permissions to default_permissions * Document command permissions * Fix command permissions doc note * Remove note * Rename dm_permission to guild_only for parity * Fix imports * Fix kwarg name * Move permission attributes to parent class * Fix guild_only decorator * [Perms v2] Additional implementations (#1303) * Update discord/commands/core.py Co-authored-by: Jay Turner <[email protected]> * Reduce need for Permissions TypeVar * Update api.rst * merge permissionsv2 into master branch copy * apply code style fixes * apply code style fixes Co-authored-by: Dorukyum <[email protected]> Co-authored-by: Dorukyum <[email protected]> Co-authored-by: BobDotCom <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: plun1331 <[email protected]> Co-authored-by: Jay Turner <[email protected]>
Summary
Targets the permissions-v2 branch
Things that still need to be done:
APPLICATION_COMMAND_PERMISSIONS_UPDATE
gateway event (same issue as above)Checklist
type: ignore
comments were used, a comment is also left explaining why