What happened / 发生了什么
module 'discord' has no attribute 'Bot'。
Reproduce / 如何复现?
照着文档配置完Discord适配器后直接启用就会显示错误,但是我换成Telegram是可以正常使用的。
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
AstrBot-desktop 4.24.2
OS
Windows
Logs / 报错日志
[2026-05-05 17:47:52.330] [Core]
[INFO]
[platform.manager:125]: Loading IM platform adapter discord(AstrBotTest) ...
[2026-05-05 17:47:52.333] [Core]
[ERRO]
[v4.24.2] [platform.manager:202]: 加载平台适配器 discord 失败,原因:module 'discord' has no attribute 'Bot'。
[2026-05-05 17:47:52.333] [Core]
[ERRO]
[v4.24.2] [platform.manager:205]: Platform adapter not found: discord(AstrBotTest).
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct
What happened / 发生了什么
module 'discord' has no attribute 'Bot'。
Reproduce / 如何复现?
照着文档配置完Discord适配器后直接启用就会显示错误,但是我换成Telegram是可以正常使用的。
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
AstrBot-desktop 4.24.2
OS
Windows
Logs / 报错日志
[2026-05-05 17:47:52.330] [Core]
[INFO]
[platform.manager:125]: Loading IM platform adapter discord(AstrBotTest) ...
[2026-05-05 17:47:52.333] [Core]
[ERRO]
[v4.24.2] [platform.manager:202]: 加载平台适配器 discord 失败,原因:module 'discord' has no attribute 'Bot'。
[2026-05-05 17:47:52.333] [Core]
[ERRO]
[v4.24.2] [platform.manager:205]: Platform adapter not found: discord(AstrBotTest).
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct