Adding a new field to an existing embed
I'm currently fetching the message containing the embed I was to edit and then getting the embed, but I can't figure out how to add a field to it without having to resend the entire embed?
8 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Would you mind elaborating? I understand I fetch the message containing the embed, and then edit that message with the new embed. But I don't understand how to add a new field to that existing embed
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
originalEmbed.addFields({ name: 'test', value: 'test' })
says .addFields
isn't a functionUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
That is correct, as message.embeds[0] returns EmbedData.
EmbedBuilder.from(message.embeds[0]) would be the way to go.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Awesome, will give that a whirl
Like a charm 👌