Attachment in embed

Hey, how can I turn interaction.options.getAttachment("image"); into an attachment to use in an embed?

I've tried to do const attachment = new AttachmentBuilder(interaction.options.getAttachment("image"), "image.png"); but it says "The resource must be a string, Buffer or a valid file stream." and I can't figure out how to turn it into a buffer.

Could anyone help?
Was this page helpful?