# Enum.ChatCallbackType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/ChatCallbackType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/ChatCallbackType

Identifies a hook point in the legacy Luau chat pipeline for use with [`Chat:RegisterChatCallback()`](https://rapi.sleaze.dev/classes/Chat.md) and [`Chat:InvokeChatCallback()`](https://rapi.sleaze.dev/classes/Chat.md).

## Items

| Name | Value | Description |
| --- | --- | --- |
| `OnCreatingChatWindow` | 1 | Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied. |
| `OnClientSendingMessage` | 2 | Client-only callback reserved for when the client sends a message; not currently invoked. |
| `OnClientFormattingMessage` | 3 | Client-only callback invoked before a message is displayed, allowing its display data to be modified. |
| `OnServerReceivingMessage` | 17 | Server-only callback invoked when the server receives a message from a speaker, allowing the message to be modified or suppressed. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [Chat](https://rapi.sleaze.dev/classes/Chat.md): method parameter `InvokeChatCallback`, `RegisterChatCallback`
