title: IndentationError: unexpected unindent
body: <p>Started coding not too long ago, around a month or so. I'm currently coding a bot for Discord and everything was working fine until I got this error message when trying to run the bot after adding in new commands to it:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Jeriel\Desktop\JerryBot\run.py", line 162, in main
      from musicbot import MusicBot
    File "C:\Users\Jeriel\Desktop\JerryBot\musicbot\__init__.py", line 1, in &lt;modu
  le&gt;
      from .bot import MusicBot
    File "C:\Users\Jeriel\Desktop\JerryBot\music\bot.py", line 2094
      if __name__ == "__main__":
                               ^
  IndentationError: unexpected unindent
  </code></pre>
  
  <p>It started after I added this in. I checked every line before these and I couldn't find a single unindent anywhere:</p>
  
  <pre><code>    async def kick(message,*args):
          """Kicks the specified user from the server"""
          if len(message.mentions) &lt; 1:
              return False
  
          if message.channel.is_private:
              msg = await client.send_message(message.channel,'Users cannot be kicked/banned from private channels.')
              asyncio.ensure_future(message_timeout(msg, 40))
              return
  
          if not message.channel.permissions_for(message.server.get_member(client.user.id)).kick_members:
              msg = await client.send_message(message.channel, message.author.mention + ', I do not have permission to kick users.')
              asyncio.ensure_future(message_timeout(msg, 40))
              return
  
          members = []
  
          if not message.channel.is_private and message.channel.permissions_for(message.author).kick_members:
              for member in message.mentions:
                  if member != message.author:
                      try:
                          await client.kick(member)
                          members.append(member.name)
                      except:
                          pass
                  else:
                      msg = await client.send_message(message.channel, message.author.mention + ', You should not kick yourself from a channel, use the leave button instead.')
                      asyncio.ensure_future(message_timeout(msg, 40))
          else:
              msg = await client.send_message(message.channel, message.author.mention + ', I do not have permission to kick users, or this is a private message channel.')
              asyncio.ensure_future(message_timeout(msg, 40))
  
          msg = await client.send_message(message.channel,'Successfully kicked user(s): `{}`'.format('`, `'.join(members)))
          asyncio.ensure_future(message_timeout(msg, 60))
  
      @register('ban','@&lt;mention users&gt;',owner=True)
  
      async def ban(message,*args):
          """Bans the specified user from the server"""
          if len(message.mentions) &lt; 1:
              return False
  
          if message.channel.is_private:
              msg = await client.send_message(message.channel,'Users cannot be kicked/banned from private channels.')
              asyncio.ensure_future(message_timeout(msg, 40))
              return
  
          if not message.channel.permissions_for(message.server.get_member(client.user.id)).ban_members:
              msg = await client.send_message(message.channel, message.author.mention + ', I do not have permission to ban users.')
              asyncio.ensure_future(message_timeout(msg, 40))
              return
  
          members = []
  
          if message.channel.permissions_for(message.author).ban_members:
              for member in message.mentions:
                  if member != message.author:
                      try:
                          await client.ban(member)
                          members.append(member.name)
                      except:
                          pass
                  else:
                      msg = await client.send_message(message.channel, message.author.mention + ', You should not ban yourself from a channel, use the leave button instead.')
                      asyncio.ensure_future(message_timeout(msg, 40))
          else:
              msg = await client.send_message(message.channel, message.author.mention + ', I do not have permission to ban users, or this is a private message channel.')
              asyncio.ensure_future(message_timeout(msg, 40))
  
          msg = await client.send_message(message.channel,'Successfully banned user(s): `{}`'.format('`, `'.join(members)))
          asyncio.ensure_future(message_timeout(msg, 30))
  
      @register('bans',alias='bannedusers')
      @register('bannedusers')
  
  
  if __name__ == "__main__":
      bot = JerryBot()
      bot.run("---")
  </code></pre>