Cannot use shortened links (like from https://u.nu) to set image in an embed.
Since the shortened link is just a redirect, ideally it should set the image.
embed = discord.Embed()
embed.set_image(url=f'https://u.nu/sholay-{result}')
await ctx.send(embed=embed)
Embed should have been sent.
Embed not sent. No traceback.
I copied your code exactly, created a shortened URL to a direct image link, and it worked just fine for me.
馃槷 But it didn't work for me... The original link works fine, but not the shortened link (in this case, u.nu)
Note a couple things here:
1) This library does nothing to render the image, that is 100% on discord's side. If there is a failure to parse an image, there's nothing this library can do
2) The embed not sending makes it seem like there's probably an error in your URL, otherwise you have some issue completely somewhere else unrelated to this. If your URL is malformed, you'll receive an error when trying to send.
Due to these...I would recommend joining the help server, as no matter what the issue is here, it's not on this library's side and nothing can be done here to "fix" this.
Hmmm, maybe I should have been more specific.
I was using format strings in the url parameter. I just tried out, the URL works but when I use the format string, it won't work. (Edited the issue description accordingly)
This doesn't seem like a library problem.
the URL parameter doesn't parse the format string. I used a variable with the same thing and it worked correctly.