# dms

> `const` **dms**: `object`

Defined in: [sdk/js/src/dms.ts:8](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/dms.ts#L8)

The bot's DMs. A member can turn DMs from bots off; then `open` throws `FORBIDDEN`.

## Type Declaration

### close()

> **close**(`channelId`): `void`

Hides a DM from the bot's list.

#### Parameters

##### channelId

`string`

#### Returns

`void`

### listOpen()

> **listOpen**(): `Channel`[]

The DMs the bot has open.

#### Returns

`Channel`[]

### open()

> **open**(`memberId`): `Channel`

The DM with `memberId`, opened when there is none.

#### Parameters

##### memberId

`string`

#### Returns

`Channel`
