它给了我这个错误: discord.ext.commands.errors.CommandNotFound: Command "play" is not found 我尝试回滚到我开始项目时使用的重写版本code 更新1:将其作为齿轮运行并提升: discord.ext.commands.errors.ExtensionFailed: Extension 'music' raised an error: TypeError: cogs must derive from Cog 更新2
我试图使用cogs组织我的discord.py机器人,但得到了以下错误 Traceback (most recent call last): class Images(commands.cog):
TypeError: module() takes at most 2 arguments (3 given' raised an error: Ty
我试图在新版本的discord.py (最新版本)中创建一个不和谐的机器人。我一直在遵循一个关于如何使用cogs的旧教程,但是后来使用了discord.py API来更新它,等等。site-packages\discord\ext\commands\bot.py", line 946, in _load_from_module_specTypeError/Cogs"):
if filename.endswith(&
因此,我制作了一个reddit.py齿轮,它看起来工作得很好(至少对我来说是这样),但是不,当齿轮加载时,我得到了一个异常:“扩展'cogs.reddit‘引发了一个错误: TypeError:initidentifier because a "Reddit" class already exists within the "praw" package