# BannedMember

## Properties

| Property      | Description                                 | Type                                                                                              |
| ------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| guildID       | ID of the Guild                             | String                                                                                            |
| ban           | ban information                             | Object                                                                                            |
| ban.reason    | reason of the ban                           | String                                                                                            |
| ban.createdAt | timestamp of when the user has been banned. | Number\|null                                                                                      |
| ban.createdBy | Banned Member ID.                           | String                                                                                            |
| user          | Banned member information.                  | Object                                                                                            |
| user.id       | Banned member id                            | String                                                                                            |
| user.type     | Banned member type                          | String                                                                                            |
| user.username | Banned member username                      | String                                                                                            |
| guild         | Guild/server component                      | [Guild](https://legacy.docs.touchguild.com/documentation/select-version/v.0.1.7/components/guild) |

## Constructor

```javascript
new BannedMember(guildID, rawData, client)
```

| Properties | Description                                     | Type                                                                                                | Required? |
| ---------- | ----------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------- |
| guildID    | raw data's guild id                             | String                                                                                              | true      |
| rawData    | raw data received from ws and converted to JSON | Object                                                                                              | true      |
| client     | Client                                          | [Client](https://legacy.docs.touchguild.com/documentation/select-version/v.0.1.7/components/client) | 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 %}
