Xh4H / Discord.jl

The Julia Discord API Wrapper
MIT License
151 stars 24 forks source link

Change permissions field from Int to Int64 #16

Closed DavidLoftus closed 4 years ago

DavidLoftus commented 4 years ago

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 https://github.com/Xh4H/Discord.jl/issues/15 for why this needs to be explicit.

Xh4H commented 4 years ago

Thank you very much!