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

# LockChatAction

> Protobuf class LockChatAction generated from WAProto.

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

## Implements

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

## Constructors

### new LockChatAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### locked?

> `optional` **locked**: `null` | `boolean`

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

#### Implementation of

[`ILockChatAction`](/proto-reference/SyncActionValue/interfaces/ILockChatAction).[`locked`](/proto-reference/SyncActionValue/interfaces/ILockChatAction#locked)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
