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
- 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!I think PermissionFlags or PermissionFlagBits
It returns a bigint, not an int :/
Permissions have to be BigInt
The numbers are too big to be represented using normal js numbers
make it a number then
no, you shouldn't
as kinect said, that'd cause issues
Thanks everybody, i'll work with bingint.