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

581
Views
How to add field to existing Embed (Discord.js v14)?

I get an embed out of a message and I want to add a field and then edit the message. Before I upgraded to v14, I could just do embed.addFields(). But now, when doing this, it just removes every property (color, description, etc.) from the embed, except for the field I add.

  let embed = new EmbedBuilder(msg.embeds[0])
  embed.addFields({name:'\u200B', value:`${emoji} ${role}`, inline:false})
  msg.edit({embeds: [embed]})
  msg.react(emoji);

I have also tried embed.fields.push(), but that also hasn't worked (the console says the function is undefined).

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

new EmbedBuilder() doesn't accept an Embed as the parameter. Use .data, .toJSON() or EmbedBuilder.from() (which does accept an Embed)

new EmbedBuilder(msg.embeds[0].data)
new EmbedBuilder(msg.embeds[0].toJSON())
EmbedBuilder.from(msg.embeds[0])

any of the lines above will work

about 4 years ago · Santiago Trujillo Report

0

Try EmbedBuilder.from(msg.embeds[0]) instead of new EmbedBuilder(msg.embeds[0])

about 4 years ago · Santiago Trujillo 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!