一段时间以来,我一直在开发一个不和谐的小机器人,在我开始测试在一个语音频道播放mp3之前,它一直运行良好。
我跟踪这个问题是因为discord.py抛出了一个错误,需要pynacl:RuntimeError:使用语音所需的PyNaCl库。
Bot在运行以下命令后停止工作:pip install -U discord.py[voice]
现在我没有收到任何消息内容:

我确实尝试过用pip uninstall discord.py[voice]重新安装pip install discord.py库
我现在怎样才能得到消息内容?
发布于 2022-11-30 16:40:40
您需要确保在message_content和代码中都正确配置了不和谐开发者门户意图:
intents = discord.Intents()
intents.message_content = True
client = discord.Bot(intents=intents)https://stackoverflow.com/questions/74490633
复制相似问题