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.

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

  1. Pingback: diet pop on keto
  2. whoah this blog is great i really like reading your articles.

    Keep up the good work! You understand, a lot of people are looking around for
    this information, you could help them greatly.

    Reply
  3. You can definitely see your expertise within the work you write. The world hopes for even more passionate writers like you who are not afraid to say how they believe. Always follow your heart.

    Reply
  4. Hey superb blog! Does running a blog like this take
    a lot of work? I have no understanding of computer programming however
    I was hoping to start my own blog soon. Anyways, should you
    have any ideas or techniques for new blog owners please share.
    I understand this is off subject however I simply wanted to ask.
    Cheers!

    Reply
  5. You actually make it seem so easy with your presentation but
    I find this matter to be really something that I think I would never understand.

    It seems too complex and extremely broad for me.
    I am looking forward for your next post, I’ll try to get the hang
    of it!

    Reply
  6. I like the valuable info you provide in your articles. I’ll bookmark your weblog and check again here regularly.
    I am quite certain I’ll learn lots of new stuff
    right here! Best of luck for the next!

    Reply
  7. hello there and thank you for your info – I have
    certainly picked up something new from right here.
    I did however expertise some technical points using this site,
    as I experienced to reload the website many times previous to I could get it to load correctly.

    I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times
    will sometimes affect your placement in google and can damage your quality score if ads and marketing with Adwords.

    Anyway I am adding this RSS to my e-mail
    and can look out for a lot more of your respective intriguing content.

    Ensure that you update this again soon.

    Reply
  8. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set
    up? I’m assuming having a blog like yours would cost a pretty penny?

    I’m not very internet savvy so I’m not 100% sure.
    Any suggestions or advice would be greatly appreciated. Appreciate it

    Reply
  9. You really make it seem really easy with your presentation however I in finding this matter to be really one thing that I feel I would by no means understand. It kind of feels too complex and extremely vast for me. I’m looking forward to your subsequent submit, I’ll attempt to get the dangle of it!

    Reply
  10. Hey there I am so thrilled I found your web site, I really found you by mistake, while I was
    looking on Yahoo for something else, Anyhow I am here now and would just like to
    say thanks for a tremendous post and a all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have book-marked it and also
    included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the great job.

    Reply
  11. Pingback: clomid 2016
  12. Pingback: olumiant 2 mg
  13. Pingback: tamoxifen drug

Leave a Comment