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

238
Views
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 answers
Answer question

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 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!