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

256
Views
How do I fix CLIENT_MISSING_INTENTS error?

I started learning about discord.js, but now I am facing this issue. I tried some googling, but I couldn't manage to fix it.

const Discord = require('discord.js');
// const Discord = require('discord.js');

// Using Intents class
const client = new Discord.Client();

client.on('message', (msg) => {
  // Send back a reply when the specific command has been written by a user.
  if (msg.content === '!hello') {
    msg.reply('Hello, World!');
  }
});

client.login('my_token');

This is the error I am getting:

Enter image description here

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

You need to specify the events which you want your bot to receive using gateway intents.

Instead of

const client = new Discord.Client();

Use

const client = new Discord.Client({ intents: [Enter intents here] })

For example

const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] })

Here's another useful page: Gateways


  • Intents help you control which events your bot receives. See Privileged Intents for more information.
  • You need node.js 16.6 or higher to use discord.js13. npm install node@16 in shell.
  • The list of events are under the events tab at Client.
about 4 years ago · Juan Pablo Isaza Report

0

You can instead just degrade the discord.js version by typing this into the shell:

npm i discord.js@12.5.3

The latest discord.js version doesn't function very well, so I use v12. It isn't a complicated script.

about 4 years ago · Juan Pablo Isaza Report

0

client = new Discord.Client({intents: 32767})
about 4 years ago · Juan Pablo Isaza 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!