title: Only send welcome DM to users of specific server in discord.py
body: <p>I have a discord bot who resides in multiple servers, however I would like to either have join messages for each server or ensure my bot only sends the welcome message to those joining one of them.</p>
  <pre><code>@client.event #Send new members of the server a message
  async def on_member_join(member): #Run when a member joins
      await member.create_dm() #Create a DM chat with the new user
      await member.dm_channel.send(f&quot;Heya, {member.name}! [ETC OF WELCOME MESSAGE]&quot;)
      print(f'User DM sent:\n----------\nUser: {member.name}\n----------')
  </code></pre>
  <p>According to the documentation, the only parameter of <code>on_member_join</code> is <code>member</code>, so is this not possible?
  I have been attempting to send the DM based on server IDs.
  After some research, I saw <code>ctx.author.send</code>, but that didn't work:</p>
  <pre><code>  File &quot;REDACTED&quot;, line 312, in _run_event
      await coro(*args, **kwargs)
    File &quot;REDACTED&quot;, line 34, in on_member_join
      await ctx.author.send(f&quot;Heya, {member.name}! REDACTED&quot;)
  AttributeError: 'Member' object has no attribute 'author'
  </code></pre>
  <p>Here is the full code, in its current form.</p>
  <pre><code>@client.event
  async def on_member_join(ctx):
      current_server = ctx.guild.id
      if current_server == server_id:
          await ctx.author.send(f&quot;Heya, {member.name}! REDACTED&quot;)
          print(f'User DM sent:\n----------\nUser: {member.name}\n----------')
  </code></pre>