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.

