title: How do I get the discord.py intents to work?
body: <p>I am trying to make a bot that welcomes people to the server that it's in and all of the code works except for the on_member_join event because it utilizes the new intents. I googled on how to work with the intents and tried everything but it still isn't working.</p>
  <pre><code>intents = discord.Intents.default()
  intents.members = True
  client = commands.Bot(command_prefix=',', intents = intents)
  </code></pre>
  <p>How do I fix this?</p>