Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda