title: How to delete take certain channels and categories and delete them? (Discord.py)
body: <p>I want that when a user writes a command, the bot deletes certain channels with certain names, but I can't succeed.</p>
  <p><strong>Error:</strong></p>
  <pre class="lang-py prettyprint-override"><code>discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Guild' object has no attribute 'get_category'
  </code></pre>
  <p><strong>Code:</strong></p>
  <pre class="lang-py prettyprint-override"><code>@client.command()
  async def verification_channels_delete(ctx):
      await ctx.send('Удаляю категории и каналы для верефикации...')
  
      category1 = await ctx.message.guild.get_category('Verification')
      category2 = await ctx.message.guild.get_category(&quot;Chat&quot;)
  
      await category1.delete()
      await category2.delete()
  
      channel1 = await ctx.message.guild.get_text_channel(&quot;Verification&quot;)
      channel2 = await ctx.message.guild.get_text_channel(&quot;Chat&quot;)
  
      await channel1.delete()
      await channel2.delete()
  
      await ctx.send('Я удалил все каналы для верефикации!')
  </code></pre>