title: How do I know if a command requires the user to have a certain permission (to function)?
body: <p>How do I go about retrieving a list of commands (<a href="https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Command" rel="nofollow noreferrer"><code>Command</code></a>s) that require the user to have the 'administrator' <a href="https://discordpy.readthedocs.io/en/stable/api.html#discord.Permissions" rel="nofollow noreferrer">permission</a> (to use them)? I am making a 'help' command; I would like to be able to retrieve all commands that require a certain permission in a list.</p>
  <p>For example:</p>
  <pre class="lang-py prettyprint-override"><code>class Moderate(commands.Cog):
        @commands.command()
        @has_permissions(administrator=True)
        async def kick(ctx, member):
            #kick member
  
  cog = Moderate
  print(cog.commands.checks) -&gt; {&quot;kick&quot; : administrator=True} #How to get this or the commands my bot has with this permission requirement?
  </code></pre>