-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
Fix Permissions.all()
#795
Conversation
This doesn't include the |
Upon testing I noticed that adding another 1 will add the new permission. We should look for a solution that doesn't require us to change this whenever a new permission is added. |
From testing I saw that every value is accepted except -1. |
@Dorukyum I fixed it. |
Summary
Fixes #793 (Kind of)
I saw this issue and tried to reproduce the error and didn't get a
401
but instead a403
, either way it still appears thatPermissions.all()
will not work. This pr makes it return0b1111111111111111111111111111111111111111
instead of-1
This very long bit number is what I found sets all permissions toTrue
Checklist
type: ignore
comments were used, a comment is also left explaining why