Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

302
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!