# S02PacketChat

Represents a chat message packet sent from the server

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Methods

#### getChat()

> **getChat**(): `string`

Gets the chat message content without formatting

**Returns**

`string`

The unformatted chat message text

***

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#getpacketid)

***

#### getType()

> **getType**(): `number`

Gets the type of this chat message

**Returns**

`number`

The chat message type ID

***

#### isChat()

> **isChat**(): `boolean`

Checks if this packet represents a chat message

**Returns**

`boolean`

True if this is a chat message, false otherwise
