Problem creating new embed object from received embed object.

I am having trouble trying to create a new, editable embed object from an embed received from a button interaction, but the problem I am having is:

What is the correct way to create a new embed from an old embed object using something along the lines of

const exampleEmbed = EmbedBuilder.from(receivedEmbed).setTitle('New title');


I had retrieved this from D.JS Docs, but I am still receiving errors such as

TypeError: EmbedBuilder.from is not a function


Any help would be greatly appreciated.

Version Information
NodeJS: v18.12.11
Discord.JS: 14.7.1
__NPM: 8.19.2
Was this page helpful?