receive the privilege value when it's changed
client.on('chat-privilege-change', (data: { chatPrivilege: number }) => {
console.log(data);
// do something
})
receive instant messages sent from other
client.on('chat-on-message', data => {
console.log(data);
// do something
})
the structure of data is the same as ChatMessage
Generated using TypeDoc
A series of events are exposed to indicate the status of Chat.