title: How to send private message to member in on_member_join() discord.py?
body: <p>This is what I have:</p>
  
  <pre><code>@client.command(pass_context=True)
  @client.event
  async def on_member_join(ctx, member):
      print(f'{member} has joined a server.')
      await ctx.send(f"Hello {member}!")
      await ctx.member.send(f"Welcome to the server!")
  </code></pre>
  
  <p>I need the bot to send a private message containing rules and commands list when he joins. </p>
  
  <p>Please help!</p>