click-contrib / click-repl

Subcommand REPL for click apps
MIT License
215 stars 41 forks source link

AttributeError: 'Command' object has no attribute 'command' | Discord.py #79

Closed Sailesh36 closed 2 years ago

Sailesh36 commented 2 years ago

Code:

@help.command()
async def ping(ctx):
        em = discord.Embed(
        title="Ping",
        description="This command shows your latency",
        color=0x161716
    )
    await ctx.send(embed=em)

It shows this error: File "D:\Kunnu\Discord.py\bot.py", line 39, in @help.command() AttributeError: 'Command' object has no attribute 'command'