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

228
Views
[Symbol(code)]: 'CLIENT_MISSING_INTENTS' (Discord.js)

This is my code:

    import { Client } from 'discord.js';
    
    const bot = new Client();
    
    bot.on('ready', () => console.log('${bot.user.username} is online'));
    
    bot.login('MyToken');

This is the error i get. I have node 14.17.5 installed.

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
    at Client._validateOptions (C:\Users\jayrc\OneDrive\Documents\Coding\Discord\illuminate\node_modules\discord.js\src\client\Client.js:544:13)
    at new Client (C:\Users\jayrc\OneDrive\Documents\Coding\Discord\illuminate\node_modules\discord.js\src\client\Client.js:73:10)
    at file:///C:/Users/jayrc/OneDrive/Documents/Coding/Discord/illuminate/src/bot.js:3:13
    at ModuleJob.run (internal/modules/esm/module_job.js:170:25)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5) {
  [Symbol(code)]: 'CLIENT_MISSING_INTENTS'
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Assuming you're using the most recent version (v13) of discord.js, they specify on this page that you need node v16.6 or newer.

More specifically, v13 of discord.js introduced many changes to their client object, one of which was the introduction of intents.

Your bot needs to specify what its intents are within the constructor of the client object, like the getting started example on line 3.

const client = new Client({ intents: [Intents.FLAGS.GUILDS] });

Obviously which intents you need will depend on what your bot does. You can read up on intents on discord's official developer docs.

over 4 years ago · Santiago Trujillo 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!