#invalid intents with v14

56 messages · Page 1 of 1 (latest)

proven waspBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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
chrome oysterBOT
#

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
worn pagoda
#

did you look at the tag?

#

okay, which part is confusing

#

take a look at it again

#

yes, and examples are shown

chrome oysterBOT
#

guide Additional Information: Updating from v13 to v14 - Breaking Changes > Enum Values
read more

worn pagoda
#

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

#

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

rotund jay
#

You dit not imported it.

worn pagoda
#

please stop wasting my time

rotund jay
#

Read the guide and come back tomorrow.

worn pagoda
#

and i have helped you numerous times

#

i already showed you

#

so stop

worn pagoda
#

if you dont know how to import something, then you need to learn more js

worn pagoda
#

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

rotund jay
worn pagoda
#

its a public server

#

they're helping you just as much as i am

rotund jay
worn pagoda
#

im going to leave this thread if you keep this attitude

#

cut it out

#

read the messages that we have sent

#

if you still dont understand, i simply cannot help you anymore than i have already

#

good luck