ChatService¶
Chat is a static class used for various actions regarding the chat.
Inherits: Instance
Properties¶
- ChatPredicate:
function
Methods¶
BroadcastMessage(msg: string) → nil¶
Sends a chat message to all players.
UnicastMessage(msg: string, plr: Player) → nil¶
Sends a chat message to a specific player.
Events¶
- NewChatMessage: Fires when new chat message has been received from player
- MessageReceived: Fires when new message has been received from either
BroadcastMessageorUnicastMessage - MessageDeclined: Fires when message has been declined by the server