Discord.py 重写<discord.embeds.Embedded object at 0x108778288>



我在一年后重新访问discord.py,发现异步显然显然是如此,现在我正在使用重写,不知道我在做什么。我正在尝试发送一个简单的嵌入,但是机器人说:

'<discord.embeds.Embed object at 0x108778288>'

这是我的代码:

@bot.command(pass_context=True)
async def help(ctx):
    aiuto = discord.Embed(title="Help", description="being helpful")
    await ctx.send(aiuto)

您现在可以将embed Kwarg传递给消息,

await ctx.send(embed = aiuto)

此外,在Discord.py重写中,您不需要将pass_context传递给bot.command@bot.command也有效

答案:等待ctx.send(embed = aiuto(

相关内容

最新更新