TextChatMessageProperties has false or confusing information

Something is wrong with the code on that page. It says:

 -- Derive chat message properties
local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()

This will return ChatWindowMessageProperties, while the whole page implies it would return TextChatMessageProperties. Later the code uses properties.TextColor3, which is not listed in properties below, because it isn’t a property of TextChatMessageProperties, but of ChatWindowMessageProperties
The page of ChatWindowMessageProperties is empty, and it seems like that piece of code should be put there instead.
At the end, the callback returns those properties. It is not necessary, because the callback expects TextChatMP, and it does nothing with ChatWindowMP.
It seems like those two things got mixed when writing those articles (which might be a sign that this system is (maybe unnecessarily) complicated)

By the way, is it intended that I can’t create ChatWindowMessageProperties with Instance.new, while I can create TextChatMessageProperties?

Page URL: https://create.roblox.com/docs/reference/engine/classes/TextChatMessageProperties

2 Likes

There’s a same problem on this page:

local overrideProperties = Instance.new("TextChatMessageProperties")
overrideProperties.TextColor = Color3.fromRGB(255, 0, 0)

TextChatMessageProperties doesn’t have property .TextColor.

1 Like

Hello! Thank you for your report. We are currently investigating this issue and I will let you know when an update has been made.

Hello! We’ve updated the documentation for ChatWindowMessageProperties and TextChatMessageProperties to help clarify both of their uses. Please let us know if you find anything else confusing. Thank you again for your report!