IntentsBitField is not a constructor
I'm following this part of the guide: https://discordjs.guide/popular-topics/intents.html#enabling-intents
Below is the code that I'm using to create an instance of the Client with the right intents:
When I run the code, I get the following error stack:
I'm running Discord v13.12. I'm not sure what the problem is.
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Sorry, I went ahead and updated to 14 instead; didn't realize there was a version difference.