embed data is a bit strange

so, trying to edit embed from message. getting it from: let _embed = new EmbedBuilder(interaction.message.embeds[0]); why is it like data.data and have fields in both and they are different?
8 Replies
⚡AmirhN
⚡AmirhNOP3y ago
there is a data.fields with 1 length, and data.data.fields with 6 and im trying to spliceFields, and there is a strange thing. the _embed im printing is kinda same before and after that, and i have the changed fields from spliceFields in both of them in data.fields (not data.data) but im just getting one field in the embed im editing
⚡AmirhN
⚡AmirhNOP3y ago
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
⚡AmirhN
⚡AmirhNOP3y ago
thanks!
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
⚡AmirhN
⚡AmirhNOP3y ago
TypeError: EmbedBuilder.from is not a constructor oh i should remove new i guess
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
⚡AmirhN
⚡AmirhNOP3y ago
ty working thanks
Want results from more Discord servers?
Add your server