代码不断抛出错误```命令帮助已经是一个现有命令或别名```为什么会这样,我该如何解决?

The code keeps on trowing an error ```The command help is already an existing command or alias``` Why is this so and how do I fix it?

我正在 python 中开发一个 discord 机器人,但是一旦我 运行 代码显示错误 The command help is already an existing command or alias. 并且它不在代码中的其他任何地方。

这是代码

async def help(ctx):
  embed = discord.Embed(title='Help', description='Use s!help <command> for more info on it')
  embed.add_field(name="Moderation", value="Kick, Ban, Mute, Purge/Clean")
  embed.add_field(name="Roleplay", value="Hug, Kiss, Slap, Shoot, Punch, lick, poke, cookies")
  embed.add_field(name="Games", value='Dice, Slots,')
  embed.add_field(name="Extras", value='Weather, Ping')

help命令已经存在,所以你需要remove默认命令来覆盖它:

bot = commands.Bot(command_prefix='your prefix')
bot.remove_command('help')

#Your code

bot.run(token)