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