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

265
Vistas
Vs code, no autocomplete with javascript (discord.js)

So I've been working with discord.js for a little while but whenever I type any discord related function/object, the intellisense proposition are totally unrelated or straight up missing. It's quite annoying and couldn't find why. Though it seems to work in the main file (index.js)

otherfile.js:

enter image description here

index.js:

enter image description here

What could the problem be?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

I had the exact same problem. What fixed it for me? Actually switching to TypeScript. I set the client Type, to Client from discord.js, and now it is working. I know, it is not the easiest fix, but for sure one that works.

about 4 years ago · Juan Pablo Isaza Denunciar

0

This should pretty much fix the issue

In other files, try adding this piece of code

const { Client } = require("discord.js")

module.exports = {
/**
  * 
  * @param {Client} client
  */
}

You can import other classes like Message with the respective paramater (for eg: message).

If you're still confused, type client. and press CTRL + SPACEBAR at the same time. This will bring the drop down menu of options.

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