Enum Integer Permissions Typescript

Hi there all, is there a "Enum" type in the package or anything one that returns integer permissions with a PermissionResolvable type ? Sorry if my question is not at the right place.
8 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Fede
Fede5mo ago
I think PermissionFlags or PermissionFlagBits
d.js docs
d.js docs5mo ago
:dtypes: v10: PermissionFlagsBits read more
kps
kpsOP5mo ago
It returns a bigint, not an int :/
Kinect3000
Kinect30005mo ago
Permissions have to be BigInt The numbers are too big to be represented using normal js numbers
Bay Kedi
Bay Kedi5mo ago
make it a number then
let sum: bigint;
Number(sum);
let sum: bigint;
Number(sum);
Amgelo
Amgelo5mo ago
no, you shouldn't as kinect said, that'd cause issues
kps
kpsOP5mo ago
Thanks everybody, i'll work with bingint.

Did you find this page helpful?