【发布时间】:2020-07-26 13:00:52
【问题描述】:
好的,我有两张图表图像,我想将它们发送到一个嵌入消息中: 这是我写的代码:
charts = [
discord.File("/root/discord.py/chart-render/tempchart.png", filename="tempchart.png"),
discord.File("/root/discord.py/chart-render/ramchart.png", filename="ramchart.png")
]
stats.set_image(url="attachment://tempchart.png")
stats.set_image(url="attachment://ramchart.png")
await ctx.send(embed=stats, files=charts)
问题是一个在嵌入中发送,但第二个没有 - 它通过嵌入消息发送
我该如何解决这个问题?
【问题讨论】:
标签: python-3.x embed discord.py discord.py-rewrite