title: Send message to user upon join with discord.py self-bot
body: <p>It suppose to send message upon join but Member_join event isn't working
  By the way it's a self bot
  Discord.py Version : 1.7.3
  My code:</p>
  <pre class="lang-py prettyprint-override"><code>
  @client.event
  async def on_member_join(member):
    await member.send(&quot;welcome to random server&quot;)
    print(f&quot;Sent message to {member.username}&quot;)
  </code></pre>