title: Cloning and Deleting a channel: Discord.py
body: <pre class="lang-py prettyprint-override"><code>@client.command()
  @commands.is_owner()
  async def nuke(ctx, channel_name):
      existing_channel = discord.utils.get(guild.channels, name=channel_name)
      if existing_channel is not None:
          await clone(name=channel_name,reason=&quot;Has been nuked&quot;)
          await existing_channel.delete()
      else:
          await ctx.send(f'No channel named **{channel_name}** was found')
  </code></pre>
  <p>I've seen multiple bots on discord that can already do this, via a nuke command, but I wanted to learn how to do this myself. The problem is, my bot is unable to detect that I've mentioned a channel (as seen in the attached image). I found a question similar to this about 'nuking a channel properly' but they were using cogs. Help? <a href="https://i.stack.imgur.com/Emyzh.png" rel="nofollow noreferrer">This is the attached picture</a></p>