我正在尝试使用discord.py制作一个不和谐的机器人,该机器人使用嵌入式消息回复!help。我在其他地方看到过此问题的答案,但是每当我运行此代码时,python都会崩溃。我已经使用打印和注释来确定问题所在的行是发送消息的底部。有提示吗?
if message.content == ('{}help'.format(prefix)):
embed = discord.Embed(title="Title",description="Desc",color=0x00ff00)
embed.add_field(name="Field1",value="hi",inline=True)
embed.add_field(name="Field2",value="hi2",inline=True)
print(embed)
await message.channel.send(embed=embed)