Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Discord.py bot不会对此作出反应';这是我自己的信息。我该怎么做?_Python_Discord_Discord.py - Fatal编程技术网

Python Discord.py bot不会对此作出反应';这是我自己的信息。我该怎么做?

Python Discord.py bot不会对此作出反应';这是我自己的信息。我该怎么做?,python,discord,discord.py,Python,Discord,Discord.py,我正试图让我的机器人对自己嵌入的表情符号做出反应,我已经编写了代码,但机器人不会对表情符号做出反应。我怎样才能解决这个问题?谢谢 @bot.command() 异步def表情符号(ctx): 嵌入=discord.embed(title=“Test”,description=“Test”,color=0x00FFFF) 等待ctx.send(嵌入=嵌入) msg=wait bot.send_message(ctx.message.channel,embed=embed) 等待bot.add_re

我正试图让我的机器人对自己嵌入的表情符号做出反应,我已经编写了代码,但机器人不会对表情符号做出反应。我怎样才能解决这个问题?谢谢

@bot.command()
异步def表情符号(ctx):
嵌入=discord.embed(title=“Test”,description=“Test”,color=0x00FFFF)
等待ctx.send(嵌入=嵌入)
msg=wait bot.send_message(ctx.message.channel,embed=embed)

等待bot.add_reaction(msg),您可以使用


wait botMessage.add_reaction(“您可以使用

等待消息。添加\u反应(“