Reference API Roblox

Engine API

Website

Related

Reference API Roblox

ChatCallbackType

Identifies a hook point in the legacy Luau chat pipeline for use with Chat:RegisterChatCallback() and Chat:InvokeChatCallback().

Items 4

HistoryNameValueDescription
355OnCreatingChatWindow1

Client-only callback invoked before the chat window is constructed, allowing custom settings to be supplied.

355OnClientSendingMessage2

Client-only callback reserved for when the client sends a message; not currently invoked.

355OnClientFormattingMessage3

Client-only callback invoked before a message is displayed, allowing its display data to be modified.

355OnServerReceivingMessage17

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.

History 5

Settings