title: How to create a category and a channel using python discord.py
body: <p>I am trying to create a function that first creates a category called "management", then it creates a channel named after the member count of my server. </p>
  
  <p>The expected outcome is that the category and channel gets created accordingly as explained above.</p>
  
  <p>This is the code i am trying to use</p>
  
  <pre><code>@client.command()
  async def setup_counter(ctx):
      try:
          await ctx.send("Setting up management!")
          await guild.create_category("Management", overwrites=None, reason=None)
          await guild.create_voice_channel(f"Member Count: {guild.member_count}", overwrites=None, category="Management", reason=None)
          await ctx.send("Setup finished!")
      except Exception as errors:
          print(f"Bot Error: {errors}")
  </code></pre>