ChatCallbackType¶
Not yet Enum
Identifies a hook point in the legacy Luau chat pipeline for use with Chat.RegisterChatCallback() and Chat.InvokeChatCallback().
Not implemented in Nova
This enum is missing from Nova. Scripts that reference it will fail.
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.
Items¶
| Item | Value | Status | Notes |
|---|---|---|---|
OnCreatingChatWindow |
1 | Not yet | Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied. |
OnClientSendingMessage |
2 | Not yet | Client-only callback reserved for when the client sends a message; not currently invoked. |
OnClientFormattingMessage |
3 | Not yet | Client-only callback invoked before a message is displayed, allowing its display data to be modified. |
OnServerReceivingMessage |
17 | Not yet | Server-only callback invoked when the server receives a message from a speaker, allowing the message to be modified or suppressed. |
Roblox reference: ChatCallbackType