How would one get an attachment from a message, then grab it and send it from a bot?

Here is the code I have tried.

embed.setImage(message.attachments.url)

Plus

embed.setImage(message.attachments[0])

But when I include an attachment in my message, it only shows the text within the message I sent, not the attachment

note* embed is the MessageEmbed constructor.

7 thoughts on “How would one get an attachment from a message, then grab it and send it from a bot?”

Leave a Comment