client = commands.Bot(command_prefix=commands.when_mentioned_or['S!', 's!'], case_insensitive=True)
上面是我的代码,它只是给了我一个错误:
Traceback (most recent call last):
File "main.py", line 28, in <module>
client = commands.Bot(command_prefix=commands.when_mentioned_or['S!', 's!'], case_insensitive=True)
TypeError: 'function' object is not subscriptable
KeyboardInterrupt
它是
您必须像在任何其他函数中一样添加普通方括号
相关问题 更多 >
编程相关推荐