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

302
Visualizações
How to make Discord bot js post the embed link previews without sending the link?

I want to use embeds to send my bot messages, but links in embeds do not sbow link previews. Is there any way to manually add in the link previews after sending an embed message that contains links?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can accomplish something like this by using MessageEmbed#setImage, and setting the URL to your image or gif file.

Here is the code I used to accomplish this:

const GifEmbed = new MessageEmbed()
        .setImage('https://link-to-your-image.com/image.gif');


    if (interaction.commandName === 'gifembed') {
        interaction.channel.send({
            embeds: [GifEmbed]
        });
    }

It will display this:

image of discord bot sending an embed with an image set

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