0

I want to find the arguments of a cog/command to put it in the help command.

for cog in client.cogs:
    
    if cog.lower() == input[0].lower():
    
            emb = discord.Embed(title=f'{cog}', description=f'{cog} parancs információja!',
                                color=discord.Color.green())
    
            for command in client.get_cog(cog).get_commands():
                if not command.hidden:
                    emb.add_field(name=f"`{prefix}{command.name}`", value=f'Használat: {"inspect.getfullargspec(client.get_cog(input[0]))"}', inline=False)
            break

Thanks! EDIT: i tried using inspect.getfullargspec but it doesnt work. I get an error that it cant find the cog is the error

the error i get is this: error picture

QUACK
  • 1
  • 3

0 Answers0