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

Change permissions field from Int to Int64 #16

Merged
merged 1 commit into from
Sep 30, 2019
Merged

Conversation

DavidLoftus
Copy link
Contributor

@DavidLoftus DavidLoftus commented Sep 30, 2019

According to Discord docs

Permissions are stored within a 53-bit integer and are calculated using bitwise operations.

Changed all usages of Int with Permissions to Int64. While I don't believe Discord currently uses all 53 bits, its safer to be future proof incase they ever do. See #15 for why this needs to be explicit.

@Xh4H
Copy link
Owner

Xh4H commented Sep 30, 2019

Thank you very much!

@Xh4H Xh4H merged commit d3cb050 into Xh4H:master Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants