在discord.py中嵌入发送后收听反应或消息

2024-05-16 10:01:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个命令,它应该设置验证过程,我希望我的bot在发送嵌入消息后,侦听下一条消息,发送到chat中,并将该消息存储在一个变量中。我知道on_message()存在,但是没有它怎么办? 该命令应如下所示:

@client.command()
async def verificationSetup(ctx, channel_id, message):
    if channel_id is not None:
        embed=discord.Embed(title="Send the emoji you want to set!", description=" ")
        await ctx.channel.send(embed=embed)
        emoji = listen_to_message()

*最终为最终的英语错误道歉*


Tags: to命令clientid消息messageon过程