Non existent methods documented on site

I am trying to figure out how to create a simple message with the chat system and the documentation site could not be more useless. There are 2 methods on the Migrating from Legacy Chat to In-Experience Text Chat page that simply do not exist, TextChatService:SendChat() and TextChatService:SystemMessage(). And I can still not figure out how to create a message in chat. How do I get the default TextChannel to create messages in?

The documentation for the chat system is a wreck and needs to be redone


image

Why is there a message on the documentation suggesting to use TextChatService, when its apparently not even enabled yet??

image

2 Likes

The listed site Migrating from Legacy Chat to In-Experience Text Chat | Documentation - Roblox Creator Hub really has some issues that should be looked over. I suggest reformatting of the post and switching to #bug-repor:documentation-issues.

The new chat is enabled when ChatVersion is set to TextChatService. At least that’s the case in a normal empty baseplate.

  1. There’s no such thing as SendChat(), even in the API reference.

→ Likely a typo; SendAsync().


  1. TextChatService:SystemMessage() doesn’t seem to exist either.

TextChannel:DisplaySystemMessage() in a local script.
→ Default text channels are created during runtime: RBXSystem and RBXGeneral.


  1. On the same page, another two typos are TextChatService:SendingMessage() and TextChatService.OnIncomingMessage().

→ Events, not a functions, former one fired on the sending client, parentesis and colons indicate a function.


Maybe there are more mistakes. The page should be looked over.

On the other hand, a pretty good resource is another page about the In-Experience Text Chat System | Documentation - Roblox Creator Hub. Also has a very helpful flow chart.

local TextChatService = game:GetService("TextChatService")
local SystemChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXSystem")

SystemChannel:DisplaySystemMessage("<font color='#FF7800'>System Message</font>")

PS: I placed the above in StarterGui because the core chat UI has to load before any messages are displayed.

3 Likes