title: Discord.py, how would I make the bot create a channel if it doesn't exists but if it does exists it will just carry on with it's task?
body: <p>I'm trying to make it so when someone gets warned (-warn @user reason) it'll say what user got warned, who they got warned by &amp; why they got warned
  Then, if the channel isn't already there, I want it to create a channel called "warn-logs" (#warn-logs when typing in Discord itself) but if the channel already exists with that name it'll keep going on with it's task &amp; say: what user got warned, who they got warned by &amp; why they got warned, I don't want it to log anything, just let the people know about the warn and save it to a channel</p>
  
  <p>I've already tried everything I can find but nothing helped, not even the Python Discord server or Discord.py Discord server</p>
  
  <p>This is the warn command itself &amp; what I've done so far</p>
  
  <pre><code>@client.command()
  @has_permissions(kick_members=True)
  async def warn(ctx, member:discord.Member, *, arg):
   author = ctx.author
   guild = ctx.message.guild
   channel = await guild.create_text_channel('warn-logs')
  
   channel
   await ctx.send(f'{member.mention} warned for: {arg} warned by: {author.mention}')
   await member.send(f'{author.mention} warned you for: {arg}')
   await ctx.message.delete()
  </code></pre>
  
  <p>I get no error messages, all that happens is it creates a channel called warn-logs (even if one with the same name already exists) but doesn't send ANY messages</p>