pythonpycord

"help" command doesn't exist pycord


When I type /help, I get this error:

 "discord.ext.commands.errors.CommandNotFound: Command "help" is not found"
@bot.slash_command(name="help", description="Get help via a helpful video!")
async def help_command(ctx: discord.ApplicationContext):
    user_mention = ctx.author.mention
    help_embed = discord.Embed(title="Help Video",
                               description=f"{user_mention}, here is the help video you requested:",
                               color=discord.Color.blue())
    help_embed.add_field(
        name="Watch Video",
        value="[Click here to watch](https://cdn.discordapp.com/attachments/993834541103976449/1193685361369563176/SPOILER_JOSH-1.mp4)",
        inline=False
    )
    await ctx.respond(embed=help_embed)

When I do /help command, it should mention the user and send the video.


Solution

  • You should Google it before asking on forums, and read PyCord's documentation a bit:

    https://guide.pycord.dev/extensions/commands/help-command

    Anyways, if you really want a slash command like annother, you can do:

    bot = commands.Bot(any_parameter_here, help_command=None)
    

    And then define the command as you want. However, this is not recommanded by the PyCord documentation, read it with the link I put to get other answers.