title: discord.py: How to get age of user's account?
body: <p>I want to check if the a user's account is more than 30 days old when he joins (<code>on_member_join</code>). If not, the bot should send a message to a channel. I have problems how to get the account's &quot;age&quot;.</p>
  <h4>Example</h4>
  <pre class="lang-py prettyprint-override"><code>bot = commands.Bot()
  
  @bot.event
  async def on_member_join(member):
      # this obviously doesn't work
      if not member.age.days &gt; 30:
          channel = bot.get_channel(ID)
          await channel.send(&quot;Your account age is too young to join this server!&quot;)
  </code></pre>
  <p>Has anyone an idea?</p>