> ## Documentation Index
> Fetch the complete documentation index at: https://fossabot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# !accountage

Returns how long ago a user created their account.

#### Parameters

This command takes **one** *optional* parameter that is a **username** to check the account age of. Defaults to the command sender if not provided.

#### Example Output

* `!accountage`

  ```
  UserName created their account 3 years, 2 months, 15 days ago
  ```

* `!accountage username`

  ```
  UserName created their account 5 years, 8 months, 3 days ago
  ```

#### Error Output

* In case an invalid username is provided, returns the following:

  ```
  Error: Invalid username
  ```

* In case the user is not found, returns the following:

  ```
  Error: User not found
  ```


## Related topics

- [$(accountage)](/docs/variables/accountage.md)
- [$(user)](/docs/variables/user.md)
- [$(channel)](/docs/variables/channel.md)
- [$(sender)](/docs/variables/sender.md)
- [Default Commands](/docs/commands/default/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.