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

# Yor.ts | classes/Role

[yor.ts](../README) / [Exports](../modules) / Role

# Class: Role

## Hierarchy

* [`Base`](Base)

  ↳ **`Role`**

## Table of contents

### Constructors

* [constructor](Role#constructor)

### Properties

* [API](Role#api)
* [client](Role#client)
* [raw](Role#raw)

## Constructors

### constructor

• **new Role**(`client`, `data`): [`Role`](Role)

Constructor function for the APIRole class.

#### Parameters

| Name     | Type                     | Description             |
| :------- | :----------------------- | :---------------------- |
| `client` | [`YorClient`](YorClient) | The YorClient instance. |
| `data`   | `APIRole`                | The APIRole data.       |

#### Returns

[`Role`](Role)

#### Overrides

[Base](Base).[constructor](Base#constructor)

#### Defined in

[src/structures/Role.ts:17](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Role.ts#L17)

## Properties

### API

• `Private` **API**: `GuildsAPI`

#### Defined in

[src/structures/Role.ts:7](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Role.ts#L7)

***

### client

• **client**: [`YorClient`](YorClient)

#### Inherited from

[Base](Base).[client](Base#client)

#### Defined in

[src/structures/Base.ts:4](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Base.ts#L4)

***

### raw

• **raw**: `APIRole`

#### Defined in

[src/structures/Role.ts:9](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Role.ts#L9)
