Why does the library export an object twice?
Not sure if discord-api-types library is related to discord.js, but I am curious why they decided to export the PermissionFlagsBits twice. First time with "void 0" and only then with the object itself
4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.ooh so it's compiled from typescript
okay thanks
i thought it was written in native JS
i googled the wrong thing so it didnt answer my question: https://stackoverflow.com/questions/7452341/what-does-void-0-mean
Stack Overflow
What does
void 0
mean?Reading through the Backbone.js source code, I saw this:
validObj[attr] = void 0;
What is void 0? What is the purpose of using it here?
okay thanks 👍