Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
[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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda