title: (discord.py) How can I get a list of how many permissions a user has
body: <p>I am currently making a &quot;userinfo&quot; command for my bot which returns general stuff like the user's ID, roles, profile picture, etc. And I also wanted it to display a list of how many permissions the mentioned user has. Here's the part of the code where I defined <code>member</code> just for context:</p>
  <pre><code>@client.command(aliases=[&quot;whois&quot;])
  async def userinfo(ctx, member: discord.Member = None):
      if not member:  # if member is no mentioned
          member = ctx.message.author  # set member as the author
      ...
  </code></pre>
  <p>I am aware that you can do <code>member.guild_permissions.&lt;permission&gt;</code> which returns whether the user has a permission or not but I wanted to know if there was a way to just get a list of how many permissions a user has without having to check for every permission.</p>
  <p>So is there a way to do that?</p>