title: TypeError: _new_message() missing 1 required positional argument: 'message'
body: <p>Hi I'm getting a TypeError and I'm not sure what I'm doing wrong here the type error is <code>TypeError: _new_message() missing 1 required positional argument: 'message'</code> which I'm assuming means I would need to instantiate a class instance? </p>
  
  <p>This is what I've done as you can see I've added <code>message = ctx.message</code> to the code.</p>
  
  <p>Here is what I'm workng with:</p>
  
  <pre><code>class antilink:
  """
  Anti URL spam
  """
  
  def __init__(self, bot):
      self.bot = bot
      self.regex = re.compile(r"&lt;?(https?:\/\/)?(www\.)?(discord\.gg|discordapp\.com\/invite)\b([-a-zA-Z0-9/]*)&gt;?")
      self.regex_discordme = re.compile(r"&lt;?(https?:\/\/)?(www\.)?(discord\.me\/)\b([-a-zA-Z0-9/]*)&gt;?")
      self.regex_url = re.compile(r'(?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()&lt;&gt;]+|\(([^\s()&lt;&gt;]+|(\([^\s()&lt;&gt;]+\)))*\))+(?:\(([^\s()&lt;&gt;]+|(\([^\s()&lt;&gt;]+\)))*\)|[^\s`!()\[\]{};:\'".,&lt;&gt;?«»“”‘’]))')
  
  
  async def _new_message(self, ctx, message):
      """Finds the message and checks it for regex"""
      server = ctx.message.server
      user = message.author
      excluded = []
      message = ctx.message
      if ctx.message.server:
          if self.regex.search(ctx.message.content) is not None or self.regex_discordme.search(ctx.message.content) is not None \
              or self.regex_url.search(ctx.message.content)is not None and ctx.message.server:
  
                  roles = [r.name for r in user.roles]
                  bot_admin = settings.get_server_admin(ctx.message.server)
                  bot_mod = settings.get_server_mod(ctx.message.server)
                  if ctx.message.channel.id is excluded:
                      return
                  elif user.id == settings.owner:
                      return
                  elif bot_admin in roles:
                      return
                  elif bot_mod in roles:
                      return
                  elif user.permissions_in(ctx.message.channel).manage_messages is True:
                      return
                  else:
                      asyncio.sleep(0.5)
                      await self.bot.delete_message(message)
  
  
  def setup(bot):
      q = antilink(bot)
      bot.add_listener(q._new_message, 'on_message')
      bot.add_cog(q)
  </code></pre>
  
  <p>If anyone could help me out here I'd much appreciate it. </p>
  
  <p>Thanks </p>