PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

InvokeChatCallback

InvokeChatCallback will call a function registered by Chat/RegisterChatCallback|RegisterChatCallback, given the ChatCallbackType enum and the arguments to send the function. It will return the result of the registered function, or raise an error if no function has been registered.

This function is called by the Lua Chat System so that chat callbacks may be registered to change the behavior of certain features. Unless you are replacing the default Lua Chat System with your own, you should not need to call this function. You can read about the different callback functions at Chat/RegisterChatCallback.

Parameters

Name Type Default Description

The type of callback to invoke

The arguments that will be sent to the registered callback function

Returns

Return Type Summary

The values returned by the function registered to the given ChatCallbackType