【发布时间】:2022-10-06 09:53:28
【问题描述】:
我正在研究一个不和谐的数字生成器,每当我运行它时,我都需要帮助解决这个代码错误它说这个
Traceback (most recent call last):
File \"C:/Users/Owner/PycharmProjects/pythonProject2/main.py\", line 6, in <module>
bot = commands.Bot(command_prefix = prefix)
TypeError: __init__() missing 1 required keyword-only argument: \'intents\'
-
我确定这已包含在 Bot API 文档中
-
什么是 Bot API 文档?
-
您正在使用
commands.Bot。检查文档。 -
BotAPI。查看Intentsprimer 可能也会有所帮助。
标签: python