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

240
Visualizações
Discord.js Embed Buttons v12

I just wanted to make a embed with 2 buttons but it doesn't seem what i want

 if (message.author.bot) return;
  if (message.content.toLowerCase().startsWith("?bhelp")) {
    let embed = new Discord.MessageEmbed()
      .setTitle(`Hello ${message.author.username}!`)
      .setDescription("Prefix for this server is `?b`")
      .setColor("ORANGE")
      .addField("🛠️ | Utlity", "`help` `whoareyou` `ping` `offserver` `updates` `timer` `ticket`")
      .addField("🛡️ | Moderation", "`bgevents` `clear` `mute` `warn` `unmute` `serverinfo` `info` `ban` `userinfo` `slowmode` `poll` `eval` `membercount` `create-channel` `delete-channel` `lock` `unlock` `unban` `giverole` `removerole`")
      .addField("📸 | Image Genration", "`cmm` `slap` `meme`")
      .addField(":smile: Fun", "`avatar` `kill` `thanks` `nitro` `hug` `chatbot` `8ball` `noobrate` `dice` `nuke` `jumble` `weather` `rps` `search`")
      .setTimestamp()
      .setFooter(`GREETINGS ${message.author.username}:D`)
      let but = new disbut.MessageButton()
      .setStyle('url')
      .setLabel('Invite me!')
      .setURL('https://dsc.gg/blab')
      let but1 = new disbut.MessageButton()
      .setStyle('url')
      .setLabel('Vote me on Top.gg!')
      .setURL('https://top.gg/bot/885379319122264075')
    message.channel.send(embed).then(m =>{m.channel.send(but,but1)})
  }

heres the code but here what output i see

Picture of output

can anybody help me?

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

0

You shouldn't be sending any text or embeds like this

message.channel.send(embed).then(m =>{m.channel.send(but,but1)})

You should remember to only send one string of text or one embed/button at a time. The fixed version would look like this

message.channel.send(embed).then(m => {
    m.channel.send(but)
    m.channel.send(but1)
})
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