f = discord.File("some_file_path", filename="image.png")
e = discord.Embed()
e.set_image(url="attachment://image.png")
await messagable.send(file=f, embed=e)
This allows you to use a local image located with the bots files, instead of uploading first and then specifying that uploaded image's url.
i have a command but the image is different each time the command is used, like when searching for pokemon. so how can i use a local for that pokemon and display it.