- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
✅Marked as resolved by staff
#invalid intents with v14
56 messages · Page 1 of 1 (latest)
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined
- All
SCREAMING_SNAKE_CASEenums have been changed toPascalCase - Intents:
Intents.FLAGS.GUILD_MESSAGES->GatewayIntentBits.GuildMessages - Permissions:
Permissions.FLAGS.SEND_MESSAGES->PermissionFlagsBits.SendMessages
did you look at the tag?
okay, which part is confusing
take a look at it again
yes, and examples are shown
Additional Information: Updating from v13 to v14 - Breaking Changes > Enum Values
read more
it’s quite clear that it’s in your intents
Intents.FLAGS.GUILDS is SCREAMING_SNAKE
again, examples are shown and in the guide
again, examples are shown from the tag and in the guide
take a look at the tag again to see the example
invalid intents with v14
again, examples are shown from the tag and in the guide
please look at them
i’ve repeated myself about 3 times
which part
- Intents.FLAGS.GUILDS
+ GatewayIntentBits.Guilds
https://discord.com/channels/222078108977594368/1115977921547473027
it’s hard to help without specifying what you’re confused about
“it’s not clear” is vague and doesn’t give a clear indication of what you’re referring to
if you dont have it in your code then im not sure what you want me to do
please read the guide
please read the guide
such as?
okay, whats the error
that's not permissions
please read the guide
where does it say that?
listen, i can't keep repeating myself and you don't seem to be reading the guide so im not sure how else to help if you are not going to put just a bit of effort into trying
i dont see what the error is
nor how permissions is related
You dit not imported it.
Read the guide and come back tomorrow.
here
if you dont know how to import something, then you need to learn more js
right here
im losing my patience
hey, im not the one who's asking for help here. im trying my best, but you dont see to be following
its very simple
Lose yours ? Check the guide ! it cannot be more clear... https://discordjs.guide/creating-your-bot/main-file.html#running-your-application Help yourself
