为了防止新帐户使用某个命令,当他们键入消息时,如何获得用户帐户的使用期限(或创建日期)。>>
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')
感谢您的任何帮助。
为了防止新帐户使用某个命令,当他们键入消息时,如何获得用户帐户的使用期限(或创建日期)。 client.get_user(account_date)如果account_date <14:...
您可以从带有ctx.author
的ctx或带有message.author
的消息中获取一个User对象。