# presence

> `const` **presence**: `object`

Defined in: [sdk/js/src/presence.ts:83](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/presence.ts#L83)

The bot's presence and custom status text.

## Type Declaration

### clearStatus()

> **clearStatus**(): `void`

Clears the custom status text and emoji.

#### Returns

`void`

### set()

> **set**(`status`, `activity?`): `void`

Sets the status and activity (none: no activity).

#### Parameters

##### status

[`PresenceStatus`](/docs/reference/js/zaun-bot/type-aliases/presencestatus/)

##### activity?

[`Activity`](/docs/reference/js/zaun-bot/classes/activity/)

#### Returns

`void`

### setStatus()

> **setStatus**(`text?`, `emoji?`, `expiresAt?`): `void`

Sets the custom status text and emoji, cleared by the host at `expiresAt` (ms) if given.

#### Parameters

##### text?

`string`

##### emoji?

`string`

##### expiresAt?

`number` \| `bigint`

#### Returns

`void`

### setStatusText()

> **setStatusText**(`text`): `void`

Sets the custom status text, kept until changed.

#### Parameters

##### text

`string`

#### Returns

`void`
