brainboxdotcc / DPP

C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
https://dpp.dev/
Apache License 2.0
1.01k stars 155 forks source link

feat: big number implementation, for future use in permissions bitfields #1176

Closed braindigitalis closed 3 weeks ago

braindigitalis commented 4 weeks ago

Officially, the Discord documentation says that permission values can be any arbitrary number of digits. At time of writing there are only 50 bits of permissions, but this is set to grow larger and potentially past 64 bits. They will continue to send this data as a huge single integer at that point, because this is obviously sensible. /s

dpp::bignumber uses OpenSSL BN_* under the hood, as we include openssl anyway for HTTPS.

Code change checklist

netlify[bot] commented 4 weeks ago

Deploy Preview for dpp-dev ready!

Name Link
Latest commit 2dc648cf59cbdbd02ea43595545bc5aafaa619eb
Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/6673e9f8e3f41b0008030e95
Deploy Preview https://deploy-preview-1176--dpp-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.