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

231
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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