'Finding the arguments of a cog/command in discord.py

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



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source