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

230
Views
Is there an alternative way to avoid that error?
module.exports = { 
    name: 'command',
    description: "Embeds!",
    execute(message, args, Discord) {
        const newEmbed = new Discord.MessageEmbed()
        .setColor('#304281')
        .setTitle('Rules')
        const newLocal = 'This is an embed for the server';
        setDescription(newLocal)
        .addFields(
            {name: 'Rule 1', value: 'Be good'},
            {name: 'Rule 2 ', value: 'Be polite'},
        )
        .setFooter('Make sure to check out that')

        message.channel.send(newEmbed);
    }
}

i need your help cause it prints me that error in terminal (i am new) (node:3712) DeprecationWarning: The message event is deprecated. Use messageCreate instead (Use node --trace-deprecation ... to show where the warning was created)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It is not an error just a warn. But you can just replace the event client.on('message', async () => ...) with client.on('messageCreate', async () => ...)

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