[This is preliminary documentation and is subject to change.]
The Chat type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| ContainsInvalidChars(String) | Checks for unprintable or illegal characters in a message. | |
| ReplaceEmoteKeywords(String) | Replaces emote keywords with actual emotes, using Chat.EmoteKeywords mapping.
Keywords are enclosed in curly braces, and are case-insensitive. | |
| ReplaceEmotesWithUncode(String) | Replaces ASCII control characters with UTF-8 symbol characters, matching Code Page 437.
Opposite of ReplaceUncodeWithEmotes. | |
| ReplacePercentColorCodes(String) | Substitutes percent color codes (e.g. %C) with equivalent ampersand color codes (&C).
Also replaces newline codes (%N) with actual newlines (\n). | |
| ReplaceTextKeywords(Player, String) | Replaces keywords with appropriate values.
See http://www.fcraft.net/wiki/Constants | |
| ReplaceUncodeWithEmotes(String) | Replaces UTF-8 symbol characters with ASCII control characters, matching Code Page 437.
Opposite of ReplaceEmotesWithUncode. | |
| SendGlobal(Player, String) | Sends a global (white) chat. | |
| SendMe(Player, String) | Sends an action message (/Me). | |
| SendPM(Player, Player, String) | Sends a private message (PM). Does NOT send a copy of the message to the sender. | |
| SendRank(Player, Rank, String) | Sends a rank-wide message (@@Rank message). | |
| SendSay(Player, String) | Sends a global announcement (/Say). | |
| SendStaff(Player, String) | Sends a staff message (/Staff). | |
| UnescapeBackslashes(String) | Unescapes backslashes. Any paid of backslashes (\\) is converted to a single one (\). |