Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
[Symbol(code)]: 'CLIENT_MISSING_INTENTS' Error

Hello I am trying to run a minecraft bot with Mineflayer and want it to connect to my discord so I can receive and send messages when I run the code it sends me an error saying: "[Symbol(code)]: 'CLIENT_MISSING_INTENTS'" Can anyone help me with solving it? Thank you

const mineflayer = require("mineflayer");
const client = new Discord.Client();

let prefix = "."
let bot = mineflayer.createBot({
    version: "1.8.9",
    host: "best.jartex.fun",
    auth: "microsoft",
    port: 25565,
    //Account Icly
    username: "############@gmail.com",
    password: "########"
})

client.on("ready", async => {
    console.log("Bot started")
})

bot.on("login", async => {
    console.log("Icly is joining Skyblock [Loading]")
    bot.chat("/play skyblock")
})

bot.on("message", message => {
    let.channel = client.channels.cache.get("##################")
    if (!channel) return;
    channel.send('${message}')
})

client.login("####################.#######.###########################")```
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In discord.js v13, Intents were introduced which helped developers to choose which type of data their bot needed to recieved. To stop the error all you have to do is change your line of code where you create your client to:

const { Client, Intents } = require('discord.js')
const client = new Client({
    intents: [
        Intents.FLAGS.GUILDS,
        Intents.FLAGS.GUILD_MESSAGES
    ]
})

You can learn more about intents here Intents | discord.js

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda