From the discord.py documentation, you can use the created_at attribute of a discord.User or discord.Member class. It will return a datetime.datetime object.
You can incorporate this into an on_member_join client event.
@client.event
async def on_member_join(member):
if member.created_at.timestamp() - time.time() < 2592000:
# do stuff if the account is young #
else:
# do stuff if the account is not young #
From the
discord.py
documentation, you can use thecreated_at
attribute of adiscord.User
ordiscord.Member
class. It will return adatetime.datetime
object.You can incorporate this into an
on_member_join
client event.