yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
707 stars 92 forks source link

Uploading Image file in an embed? #211

Closed Jerick120 closed 3 years ago

Jerick120 commented 3 years ago

Something like the following works perfectly, however the image url has to be a link to an image. I am looking for a way to upload an image from my project folder (or maybe postgres database sometime later) instead of having to use a url. Would that be possible?

sendMessage(message.channelID, "", SleepyDiscord::Embed(R"({"title" : "Embed Title", "image" : "https://image_url.com"})"));
yourWaifu commented 3 years ago

To an embed, no. But you can attach it to the message via upload image