When calling TextChannel:SendAsync()
, RichText characters like angle brackets < > or ampersands & are escaped. You can see this when printing TextChatMessage.Text
in a TextChannel.OnIncomingMessage
callback function:
textChannel.OnIncomingMessage = function(tcm)
print(tcm.Text)
end
textChannel:SendAsync("Hello <")
Output:
Hello <
This does not occur with TextChannel:DisplaySystemMessage()
, and will mess up any RichText formatting done in the OnIncomingMessage
callback (or from within the method’s message argument).
Read the code and reproduce the issue with the following .rbxm
file. Ensure game:GetService("TextChatService").ChatVersion
is set to TextChatService
.
DisplaySystemMessage doesnt escape RichText tag characters.rbxm (1.4 KB)