# Role

Defined in: [zaun/js/index.d.ts:814](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L814)

## Constructors

### Constructor

> **new Role**(): `Role`

#### Returns

`Role`

## Properties

### color

> `readonly` **color**: `number`

Defined in: [zaun/js/index.d.ts:818](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L818)

***

### community

> `readonly` **community**: [`Community`](/docs/reference/js/zaun-client/classes/community/)

Defined in: [zaun/js/index.d.ts:815](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L815)

***

### id

> `readonly` **id**: `string`

Defined in: [zaun/js/index.d.ts:816](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L816)

***

### managedBy

> `readonly` **managedBy**: `string`

Defined in: [zaun/js/index.d.ts:822](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L822)

The bot whose managed role this is.

***

### name

> `readonly` **name**: `string`

Defined in: [zaun/js/index.d.ts:817](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L817)

***

### permissions

> `readonly` **permissions**: [`Permissions`](/docs/reference/js/zaun-client/classes/permissions/)

Defined in: [zaun/js/index.d.ts:820](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L820)

***

### position

> `readonly` **position**: `number`

Defined in: [zaun/js/index.d.ts:819](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L819)

## Methods

### delete()

> **delete**(): `Promise`\<`void`\>

Defined in: [zaun/js/index.d.ts:825](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L825)

#### Returns

`Promise`\<`void`\>

***

### mention()

> **mention**(): `string`

Defined in: [zaun/js/index.d.ts:824](https://github.com/zaunchat/zaun-client/blob/main/zaun/js/index.d.ts#L824)

`<@&id>`: the text that shows a mention of this role.

#### Returns

`string`
