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

# FavoritesAction

> Protobuf class FavoritesAction generated from WAProto.

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

## Implements

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

## Constructors

### new FavoritesAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### favorites

> **favorites**: [`IFavorite`](/proto-reference/SyncActionValue/FavoritesAction/interfaces/IFavorite)\[]

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

#### Implementation of

[`IFavoritesAction`](/proto-reference/SyncActionValue/interfaces/IFavoritesAction).[`favorites`](/proto-reference/SyncActionValue/interfaces/IFavoritesAction#favorites)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
