# 🙇♂ User

## Properties

| Property    | Description                                         | Type                                                                 |
| ----------- | --------------------------------------------------- | -------------------------------------------------------------------- |
| \_client    | Client                                              | [Client](/documentation/select-version/v.0.1.7/components/client.md) |
| id          | User id                                             | String                                                               |
| type        | Type of user, bot or user                           | String                                                               |
| username    | User's username                                     | String                                                               |
| \_createdAt | Timestamp of the user's creation.                   | Number                                                               |
| avatarURL   | user's avatar url                                   | String\|null                                                         |
| bannerURL   | user's banner url                                   | String\|null                                                         |
| createdAt   | string representation of the \_createdAt timestamp. | Date                                                                 |
| bot         | Boolean that shows if the user is a bot or not.     | Boolean                                                              |

## Constructor

```javascript
new User(rawData, client)
```

| Properties | Description                                     | Type                                                                 | Required? |
| ---------- | ----------------------------------------------- | -------------------------------------------------------------------- | --------- |
| rawData    | raw data received from ws and converted to JSON | Object                                                               | true      |
| client     | Client                                          | [Client](/documentation/select-version/v.0.1.7/components/client.md) | true      |

{% hint style="danger" %}
Do not use this constructor unless you know what you're doing. This constructor is used to return you rawdata into component.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://legacy.docs.touchguild.com/documentation/select-version/v.0.1.7/components/user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
