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

421
Views
Cannot send empty message - Discord.JS v13

Error: DiscordAPIError: Cannot send an empty message
Code:

if(message.content == 'a!up')
    {
        const AllowedupMessage = new Discord.MessageEmbed()
        .setAuthor(process.env.AllowedAuthor)
        .setDescription(process.env.AllowedDescription)
        .setFooter(process.env.VNetworkFooter)
        .setColor(process.env.AllowedColor);
        message.channel.send({ embeds: [AllowedupMessage] })
    }

I can't figure out how to fix this stupid error. Thanks on your help :) <3

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

0

Depending on the version you have of Discord.js

But judging from your code, I guess it's v13

Discord.js Guide Updating from v12 to v13

Example Sending messages, embeds, files, etc. Updating from v12 to v13 The footer has been changed, now use:

.setFooter({text: 'Someone text', iconURL: 'link'})

The same for .setAuthor

- channel.send(embed);
+ channel.send({ embeds: [embed, embed2] });

- channel.send('Hello!', { embed });
+ channel.send({ content: 'Hello!', embeds: [embed, embed2] });

- interaction.reply('Hello!', { ephemeral: true });
+ interaction.reply({ content: 'Hello!', ephemeral: true });
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!