So I never tried this before, first time here. And I don't know how, I tried google but no answers.
Tried this:
let { doc: apple } = doc;
const attachment = new Discord.AttachmentBuilder(apple.imagePath, { name: "image.jpg"})
return new Discord.EmbedBuilder()
.setColor("DarkButNotBlack")
.setTitle(apple.name)
.setDescription(apple.description)
.setURL(apple.url)
.setImage(apple.hasImage ? `attachment://image.jpg` : null);```
Also tried to put the image path in the `setImage` parameter.
)