【发布时间】:2020-05-05 18:52:48
【问题描述】:
为了防止新帐户使用某个命令,我如何在用户键入消息时获取用户帐户的年龄(或创建日期)。
client.get_user(account_date)
if account_date < 14:
print('Your account must be older than 14 days to use this command')
else:
print('Your account can use this command')
感谢任何帮助。
【问题讨论】:
标签: python discord.py