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

157
Views
DiscordAPIError: Cannot send an empty message with and embed

I can't figure out the issue, it always comes up with cannot send an empty message

module.exports = {
    name: 'actualhelp',
    description: "here is some ACTUAL help",
    execute(message, args, Discord){
        const newEmbed = new Discord.MessageEmbed()
        .setColor('#304281')
        .setTitle('Help')
        .setURL('URL')
        .setDescription('Here is some basic help')
        .addFields(
            {name: '4/102', value: 'Base Set Charizard'},
            {name: 'cool', value: 'You will become cool with the Looking Epic role'},
            {name: 'ugly', value: 'Thats not nice, you are now not cool and have your Looking Epic role removed if you already had it'},
            {name: 'help', value: 'get fooled kiddo, I aint helping you'},
            {name: 'kick', value: 'checks to see if you can kick people'},
            {name: 'ping', value: 'play some ping pong with me'}
        )
        .setImage('Image url');

        message.channel.send({newEmbed});
    }


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

0

The way you are sending the embed currently is identical to this:

message.channel.send({newEmbed: newEmbed})

However this is not a valid property to set. Instead, you can do embed: newEmbed

message.channel.send({
  embed: newEmbed
})

or on v13, embeds: [newEmbed]

message.channel.send({
  embeds: [newEmbed]
})
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!