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

122
Views
Cómo enviar una inserción con discord.js

Me preguntaba cómo escribir una inserción en discord.js. Este es mi código actual: no es funcional. Recibo la advertencia: 'el mensaje no está definido' en message.channel.send. No sé cómo solucionarlo. Esperaba que me pudieran decir cómo arreglar esto. js

 // Embeding the image in An Embeded message const EmbededTweet = new MessageEmbed() .setColor('0x00FF00') .setTitle(`You made ${account} tweet this:`) .setImage(imageUrl) .setTimestamp(); // replying with the Embeded message await interaction.reply({embeds: [EmbededTweet]});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Se podría apreciar más código, pero es por eso que aparece el error.

Explicación

Probablemente no declaraste "MessageEmbed" cuando declaraste discord y en tu module.exports.

Cómo resolver

En la parte superior de su código, debe tener algo como const Discord = require('discord.js'); cambie esto a const { Discord, MessageEmbed } = require('discord.js');

Siéntase libre de responder si esto no funcionó, que tenga un buen día.

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!