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

313
Visualizações
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 à 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