我知道在 discord.py 中,您可以set_image嵌入图像的 url。但是,我想在我的计算机上使用本地文件set_image而不是图像的 url。
embed = discord.Embed(title="Title", description="Desc", color=0x00ff00)
embed.set_image(url = "https://example.com/image.png") #this is for set_image using url
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?还有其他功能吗?