vionya / discord-rich-presence

A cross-platform Discord Rich Presence library written in Rust
MIT License
89 stars 16 forks source link

Dynamic LargeImage #8

Closed afonsojramos closed 2 years ago

afonsojramos commented 2 years ago

Apparently, the large_image asset can be an URL, as it can be observed in PreMiD, however, I have not been able to replicate it with this library, any idea why?

I have been testing it in my branch here, and even though it prints a supposedly valid image (square) in my logging, Discord just ignores it... Any idea why?

image

image link

ghost commented 2 years ago

I can't reproduce this. The image appears without issue.

image

Is it possible that you're running into client-side or caching issues?

afonsojramos commented 2 years ago

Well, found that it had to do with a redirect from the original link...

I was sending this: https://imdb-api.com/posters/s470/ckLLIsNy3Z0Go1PYHA2PHzVymUA.jpg Instead of this: https://image.tmdb.org/t/p/w470_and_h470_face/ckLLIsNy3Z0Go1PYHA2PHzVymUA.jpg

Thank you!