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

# PinAction

> Protobuf class PinAction generated from WAProto.

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

## Implements

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

## Constructors

### new PinAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### pinned?

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

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

#### Implementation of

[`IPinAction`](/proto-reference/SyncActionValue/interfaces/IPinAction).[`pinned`](/proto-reference/SyncActionValue/interfaces/IPinAction#pinned)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
