ChatCallbackType
Identifies a hook point in the legacy Luau chat pipeline for use with Chat:RegisterChatCallback() and Chat:InvokeChatCallback().
Items 4
| History | Name | Value | Description | |
|---|---|---|---|---|
| 355 | OnCreatingChatWindow | 1 | Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied. | |
| 355 | OnClientSendingMessage | 2 | Client-only callback reserved for when the client sends a message; not currently invoked. | |
| 355 | OnClientFormattingMessage | 3 | Client-only callback invoked before a message is displayed, allowing its display data to be modified. | |
| 355 | OnServerReceivingMessage | 17 | Server-only callback invoked when the server receives a message from a speaker, allowing the message to be modified or suppressed. |
Description
Enumerates the callback hook points available in the legacy Luau chat system. Pass a value to Chat:RegisterChatCallback() to bind a function to the corresponding event, and to Chat:InvokeChatCallback() to invoke the registered function for that event. Each value targets either the client or the server; attempting to register a server-only callback on the client (or vice versa) raises an error.