TextChannel
Represents a text chat channel. Contains TextSources as descendants.
To send a chat message to the TextChannel, call TextChannel:SendAsync() from a LocalScript. The corresponding TextSource of the user with TextSource.CanSend = true must be in that channel.
Messages from different TextChannels can be separated into different tabs in the chat window using ChannelTabsConfiguration.
To learn more, see In-Experience Text Chat.
Summary
Properties
The TextChannel will only deliver messages to users that can send direct messages to the DirectChatRequester.
Methods
Adds a TextSource to the TextChannel given userId of a Player.
Displays a system message to the user.
Sends a TextChatMessage to the server.
Sets the DirectChatRequester for the TextChannel. The TextChannel will only deliver messages to users that can send direct messages to the DirectChatRequester.
Events
Fires when TextChannel:DisplaySystemMessage() is invoked on the client, or when the client receives a valid TextChannel:SendAsync() response from the server.
Callbacks
Called when TextChannel is receiving an incoming message.
Called for each client when TextChannel is receiving an incoming message to determine whether or not it should be delivered to that client.