【发布时间】:2022-10-01 19:26:34
【问题描述】:
C:\\Just_us_together\\main.py:2: DeprecationWarning: imp 模块已弃用,取而代之的是 importlib;请参阅模块的文档以了解替代用途
进口小鬼
Traceback (most recent call last):
File \"C:\\Just_us_together\\main.py\", line 57, in <module>
async def help(ctx):
File \"C:\\Just_us_together\\Just_us_together\\lib\\site-packages\\discord\\ext\\commands\\core.py\", line 1476, in decorator
self.add_command(result)
File \"C:\\Just_us_together\\Just_us_together\\lib\\site-packages\\discord\\ext\\commands\\bot.py\", line 245, in add_command
super().add_command(command)
File \"C:\\Just_us_together\\Just_us_together\\lib\\site-packages\\discord\\ext\\commands\\core.py\", line 1311, in add_command
raise CommandRegistrationError(command.name)
discord.ext.commands.errors.CommandRegistrationError: The command help is already an existing command or alias.
我不知道如何解决这些问题;-;
-
请edit您的帖子包含minimal reproducible example。
标签: python visual-studio-code discord.py