发送嵌入不一致文件时出现错误



我的代码是await ctx.send(file = f, embed=embed)

但是我得到这个错误:

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: RuntimeError: Form data has been processed already

我想知道为什么会发生这个错误以及如何修复它。

我已经使用嵌入很长一段时间了,但是我从未见过在嵌入的发送行中使用file = f。这很可能是问题所在,但是在没有看到更多代码之前,我不能肯定地说。如果有帮助的话,我通常是这样设置嵌入的格式的。

embed = discord.Embed(
title="Embed title"
)
# You can add as many of these as you want. Change the title and value fields as needed
embed.add_field(name= "Field Title", value="Field Value")
await ctx.send(embed = embed)

相关内容

最新更新