[英]Listening to reaction or message after sending embed in discord.py
I have a command, that should setup the verification process, i want that my bot, after sending an embed, listens for the next message, sent in chat, and storing that message in a variable.我有一个命令,应该设置验证过程,我希望我的机器人在发送嵌入后侦听下一条消息,在聊天中发送,并将该消息存储在变量中。 I know that
on_message()
exists, but how do to that without it?我知道
on_message()
存在,但是没有它怎么办? The command should look something like this:该命令应如下所示:
@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()
*Sorry eventually for eventually english mistakes* *最终为最终的英语错误感到抱歉*
I actually solved the question, the command i was looking for was wait_for()
you can find all the info here我实际上解决了这个问题,我正在寻找的命令是
wait_for()
你可以在这里找到所有信息
Special tanks to one guy on discord.py's discord discord.py 的 discord上的一个人的特殊坦克
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.