How to send the image inside the embed?
The image is sent outside the embed as a regular attachment
npm list discord.js and node node -v version?
async function sendProfileImage(user, profile) {
const attachment = new AttachmentBuilder(profile.url, 'profile.png');
const embed = new EmbedBuilder()
.setColor('Blurple')
.setAuthor({ name: `${user.username}'s profile`, iconURL: user.displayAvatarURL({ dynamic: true }) })
.setImage('attachment://profile.png');
await profileLogger.send({
username: user.username,
avatarURL: user.displayAvatarURL({ dynamic: true }),
embeds: [embed],
files: [attachment]
});
}