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

# EventMessage

> Protobuf class EventMessage generated from WAProto.

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

## Implements

* [`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage)

## Constructors

### new EventMessage()

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

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

#### Parameters

##### p?

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage)

#### Returns

[`EventMessage`](/proto-reference/Message/classes/EventMessage)

## Properties

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`contextInfo`](/proto-reference/Message/interfaces/IEventMessage#contextinfo)

***

### description?

> `optional` **description**: `null` | `string`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`description`](/proto-reference/Message/interfaces/IEventMessage#description)

***

### endTime?

> `optional` **endTime**: `null` | `number` | `Long`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`endTime`](/proto-reference/Message/interfaces/IEventMessage#endtime)

***

### extraGuestsAllowed?

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

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`extraGuestsAllowed`](/proto-reference/Message/interfaces/IEventMessage#extraguestsallowed)

***

### hasReminder?

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

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`hasReminder`](/proto-reference/Message/interfaces/IEventMessage#hasreminder)

***

### isCanceled?

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

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`isCanceled`](/proto-reference/Message/interfaces/IEventMessage#iscanceled)

***

### isScheduleCall?

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

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`isScheduleCall`](/proto-reference/Message/interfaces/IEventMessage#isschedulecall)

***

### joinLink?

> `optional` **joinLink**: `null` | `string`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`joinLink`](/proto-reference/Message/interfaces/IEventMessage#joinlink)

***

### location?

> `optional` **location**: `null` | [`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`location`](/proto-reference/Message/interfaces/IEventMessage#location)

***

### name?

> `optional` **name**: `null` | `string`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`name`](/proto-reference/Message/interfaces/IEventMessage#name)

***

### reminderOffsetSec?

> `optional` **reminderOffsetSec**: `null` | `number` | `Long`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`reminderOffsetSec`](/proto-reference/Message/interfaces/IEventMessage#reminderoffsetsec)

***

### startTime?

> `optional` **startTime**: `null` | `number` | `Long`

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

#### Implementation of

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage).[`startTime`](/proto-reference/Message/interfaces/IEventMessage#starttime)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage)

#### Returns

[`EventMessage`](/proto-reference/Message/classes/EventMessage)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`EventMessage`](/proto-reference/Message/classes/EventMessage)

***

### encode()

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

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

#### Parameters

##### m

[`IEventMessage`](/proto-reference/Message/interfaces/IEventMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`EventMessage`](/proto-reference/Message/classes/EventMessage)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`EventMessage`](/proto-reference/Message/classes/EventMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
