Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

701
Views
"[BITFIELD_INVALID]: Invalid bitfield flag or number: undefined" error in discord.js

I'm getting this error:

[BITFIELD_INVALID]: Invalid bitfield flag or number: undefined

Code:

const client = new Client({ 
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.GUILD_VOICE_STATES] 
});
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Answer from Zsolt Meszaros

It should be Intents.FLAGS.GUILD_VOICE_STATES instead of Intents.GUILDS_VOICE_STATE.

You can also set Intents via strings instead of Intents.FLAGS object.

const client = new Client({ 
  intents: ["GUILDS", "GUILD_MESSAGES", "GUILD_VOICE_STATES"] 
});
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!