# Member

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

## Constructors

### Constructor

> **new Member**(): `Member`

#### Returns

`Member`

## Properties

### botId

> `readonly` **botId**: `string`

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

The bot this member is, if it is one.

***

### client

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

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

***

### community

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

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

***

### data

> `readonly` **data**: `any`

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

***

### displayName

> `readonly` **displayName**: `string`

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

***

### id

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

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

***

### isBot

> `readonly` **isBot**: `boolean`

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

***

### isMe

> `readonly` **isMe**: `boolean`

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

***

### isTimedOut

> `readonly` **isTimedOut**: `boolean`

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

***

### joinedAt

> `readonly` **joinedAt**: `Date`

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

***

### partial

> `readonly` **partial**: `boolean`

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

The cache does not have this member yet (`community.members.fetch()`).

***

### presence

> `readonly` **presence**: [`Presence`](/docs/reference/js/zaun-client/interfaces/presence/)

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

presence: status and activity (`offline` when unknown).

***

### roles

> `readonly` **roles**: [`Collection`](/docs/reference/js/zaun-client/classes/collection/)\<`string`, [`Role`](/docs/reference/js/zaun-client/classes/role/)\> & `object`

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

#### Type Declaration

##### add()

> **add**(`role`): `Promise`\<`void`\>

###### Parameters

###### role

`string` \| [`Role`](/docs/reference/js/zaun-client/classes/role/)

###### Returns

`Promise`\<`void`\>

##### remove()

> **remove**(`role`): `Promise`\<`void`\>

###### Parameters

###### role

`string` \| [`Role`](/docs/reference/js/zaun-client/classes/role/)

###### Returns

`Promise`\<`void`\>

***

### statusEmoji

> `readonly` **statusEmoji**: `string`

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

***

### statusText

> `readonly` **statusText**: `string`

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

Custom status text and emoji, if set.

***

### timedOutUntil

> `readonly` **timedOutUntil**: `Date`

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

## Methods

### ban()

> **ban**(`reason?`): `Promise`\<`void`\>

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

#### Parameters

##### reason?

`string`

#### Returns

`Promise`\<`void`\>

***

### canUse()

> **canUse**(`command`, `channel?`): `boolean`

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

Whether this member may use bot `command` in `channel`, as the cache sees it.

#### Parameters

##### command

[`ApplicationCommandData`](/docs/reference/js/zaun-client/interfaces/applicationcommanddata/)

##### channel?

`string` \| [`Channel`](/docs/reference/js/zaun-client/classes/channel/)

#### Returns

`boolean`

***

### dm()

> **dm**(): `Promise`\<[`Channel`](/docs/reference/js/zaun-client/classes/channel/)\>

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

DM: the direct message with this member, opened if needed. Rejects with
`FORBIDDEN` (`dms_closed`) or `RATE_LIMITED` (`dms`).

#### Returns

`Promise`\<[`Channel`](/docs/reference/js/zaun-client/classes/channel/)\>

***

### fingerprint()

> **fingerprint**(): `string`

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

#### Returns

`string`

***

### kick()

> **kick**(`reason?`): `Promise`\<`void`\>

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

#### Parameters

##### reason?

`string`

#### Returns

`Promise`\<`void`\>

***

### mention()

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

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

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

#### Returns

`string`

***

### permissions()

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

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

#### Parameters

##### channel?

`string` \| [`Channel`](/docs/reference/js/zaun-client/classes/channel/)

#### Returns

[`Permissions`](/docs/reference/js/zaun-client/classes/permissions/)

***

### send()

> **send**(`options`): `Promise`\<[`Message`](/docs/reference/js/zaun-client/classes/message/)\>

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

DM: sends this member a direct message.

#### Parameters

##### options

[`MessageOptions`](/docs/reference/js/zaun-client/type-aliases/messageoptions/)

#### Returns

`Promise`\<[`Message`](/docs/reference/js/zaun-client/classes/message/)\>

***

### timeout()

> **timeout**(`ms`, `reason?`): `Promise`\<`void`\>

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

For `ms` milliseconds; `null` lifts it.

#### Parameters

##### ms

`number`

##### reason?

`string`

#### Returns

`Promise`\<`void`\>
