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 toolkit3mo 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
Fede3mo ago
I think PermissionFlags or PermissionFlagBits
d.js docs
d.js docs3mo ago
:dtypes: v10: PermissionFlagsBits read more
kps
kpsOP3mo ago
It returns a bigint, not an int :/
Kinect3000
Kinect30003mo ago
Permissions have to be BigInt The numbers are too big to be represented using normal js numbers
Bay Kedi
Bay Kedi3mo ago
make it a number then
let sum: bigint;
Number(sum);
let sum: bigint;
Number(sum);
Amgelo
Amgelo3mo ago
no, you shouldn't as kinect said, that'd cause issues
kps
kpsOP3mo ago
Thanks everybody, i'll work with bingint.
Want results from more Discord servers?
Add your server