Problem with intents
Hello there. So, I just downloaded the new version of Discord.js, and I am surprised at how quickly I came across some errors. The first problem I came across was
Intents.FLAGS
being replaced. No problem there though, I quickly fixed that by replacing Intents.FLAGS
with GatewayIntentBits
. What is my problem? After doing that, it ended up giving me a RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
error. Here are my intents:
If someone could help me, that would be awesome. Thank you for your time and help, it is truly appreciated.
Full error stack:
Discord.js Version: 14.6.0
Node Version: 8.1.45 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined
• All SCREAMING_SNAKE_CASE
enums have been changed to PascalCase
• Intents: Intents.FLAGS.GUILD_MESSAGES
-> GatewayIntentBits.GuildMessages
• Permissions: Permissions.FLAGS.SEND_MESSAGES
-> PermissionFlagsBits.SendMessages
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Worked like a charm. Thank you!
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View