title: Creating a category in discordpy with permissions that only a specific role can join and type in
body: <p>Looking to make a category with text and voice channels only visible by a specific role (which is in the same command)... here's what I have so far but I am a bit lost when it comes to adding the permissions to the category..</p>
  <pre class="lang-py prettyprint-override"><code>@bot.command(pass_context=True)
  @commands.has_permissions(kick_members=True)
  async def createfriendgroup(ctx, role_name):
      guild = ctx.guild
      await guild.create_category(role_name)
      category = discord.utils.get(ctx.guild.categories, name = role_name)
      await guild.create_role(name = role_name)
      await guild.create_text_channel(f&quot;{role_name}-private-tc&quot;, category = category, sync_permissions=True)
      await guild.create_voice_channel(f&quot;{role_name}-private-vc&quot;, category = category, sync_permissions=True)
  </code></pre>
  <p>So I've created the category, the text, and the voice channel (both with synced permissions), but do now know how set the permissions inside the category, so any help would be absolutely amazing! Thank you!</p>