-
Notifications
You must be signed in to change notification settings - Fork 31
用户bot (user-bot / self-bot) 无法获取消息的content #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our 8000 terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
应该是4月30日discord对api做了某种修改所致,而目前discord.py库已不再为selfbot的问题提供维护与帮助,甚至将在未来的v2.0版本直接移除对selfbot的支持,相关讨论可参见Rapptz/discord.py#6839 |
好的 感谢您及时回答! |
https://github.com/dolfies/discord.py-self 感觉这个好像可以,不过本项目不能简单通过修改 discord.py 依赖库为 discord.py-self 来用 |
这个确实可以,改为 |
请问luoye大佬 依赖库改为discord.py-self后,需要修改哪个地方的代码才能实现on_message获取content?请指教🙏 |
作者原代码中既支持bot也支持self-bot,修改后需要将
修改为
之后可能运行时还会有字符串拼接的报错,再自行修改一下就行。
可能是上面这部分代码,记不太清了 |
已经引入discord.py-self解决问题,请详阅readme中外部依赖库进行处理。 |
感谢美女、帅哥作者 |
discord 好像更新了用户的token
无法获取其他人发送的mesage的content
请问有方法解决吗?
The text was updated successfully, but these errors were encountered: