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

310
Vistas
Unresolved function or method send(), even if everything works ( WebStorm, discord.js )

I’m trying to create a bot with WebStorm using Node.js

This is my code:

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

client.login( "token" )

client.on( "ready", () => {
    console.log( "Discord bot is online." )
} )

client.on( "messageCreate", ( message ) => {
    if( message.content === "!ph" ){
        message.channel.send( "hello" )
    }
} )

Even if everything works, in the event "messageCreate" when I do message.channel.send() the ide gives me this warning: "Unresolved function or method send() " suggesting me to create the send method. Does anyone know how to fix it, because they don’t recognize the method but then running it works anyway? Thank you.

enter image description here

about 4 years ago · Juan Pablo Isaza
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