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');
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
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
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Noxxe
Noxxe2y ago
d.js wait One second, I know what's wrong, I didn't notice it it was importing it from builders rather than main
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View