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

# UsernameChatStartModeAction

> Protobuf class UsernameChatStartModeAction generated from WAProto.

Defined in: [WAProto/index.d.ts:12928](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12928)

## Implements

* [`IUsernameChatStartModeAction`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction)

## Constructors

### new UsernameChatStartModeAction()

> **new UsernameChatStartModeAction**(`p`?): [`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

Defined in: [WAProto/index.d.ts:12929](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12929)

#### Parameters

##### p?

[`IUsernameChatStartModeAction`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction)

#### Returns

[`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

## Properties

### chatStartMode?

> `optional` **chatStartMode**: `null` | [`ChatStartMode`](/proto-reference/SyncActionValue/UsernameChatStartModeAction/enumerations/ChatStartMode)

Defined in: [WAProto/index.d.ts:12930](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12930)

#### Implementation of

[`IUsernameChatStartModeAction`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction).[`chatStartMode`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction#chatstartmode)

## Methods

### create()

> `static` **create**(`properties`?): [`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

Defined in: [WAProto/index.d.ts:12931](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12931)

#### Parameters

##### properties?

[`IUsernameChatStartModeAction`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction)

#### Returns

[`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

***

### decode()

> `static` **decode**(`r`, `l`?): [`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

Defined in: [WAProto/index.d.ts:12933](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12933)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:12932](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12932)

#### Parameters

##### m

[`IUsernameChatStartModeAction`](/proto-reference/SyncActionValue/interfaces/IUsernameChatStartModeAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

Defined in: [WAProto/index.d.ts:12934](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12934)

#### Parameters

##### d

#### Returns

[`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:12937](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12937)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:12936](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12936)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:12935](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12935)

#### Parameters

##### m

[`UsernameChatStartModeAction`](/proto-reference/SyncActionValue/classes/UsernameChatStartModeAction)

##### o?

`IConversionOptions`

#### Returns

`object`
