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

Implement application command permissions v2 #1129

Merged
merged 14 commits into from
Mar 19, 2022
Prev Previous commit
Next Next commit
Add missing return
  • Loading branch information
Dorukyum committed Jan 16, 2022
commit 7ca7fbfa5e632f4dce356a8c3f527dcd0d11b6af
2 changes: 2 additions & 0 deletions discord/commands/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ async def test(ctx):

def inner(func: Callable):
func.__default_member_permissions__ = Permissions(**perms)
return func

return inner