【发布时间】:2021-06-16 11:13:27
【问题描述】:
我试过了
data_stream = io.BytesIO()
data_stream.seek(0)
l = ['Communication', 'dress', 'food', 'culture', 'other']
plt.pie(r, labels=l, autopct='%.1f%%')
plt.savefig(str(ctx.author))
chart = discord.File(data_stream, filename=f"{str(ctx.author)}.png")
embed = discord.Embed(title = 'ㅁㄴㅇㄹ', description = 'ㅁㄴㅇㄹd')
embed.set_image(url=chart)
plt.close()
await ctx.send(embed=embed)
但是错误..
无效的表单正文
在 embed.image.url 中:不支持方案“
我该如何修复这个错误?
【问题讨论】:
标签: python discord.py