代表文字聊天频道。包含 TextSources 作为子级。
要向 TextChannel 发送聊天消息,请从 TextChannel:SendAsync() 拨打 LocalScript 。用户的相应 必须在那个频道中。
使用 ChannelTabsConfiguration 将不同文本通道的消息分开到聊天窗口的不同选项卡中
了解更多信息,请参阅体验内文字聊天。
概要
属性
TextChannel 只会向用户发送消息,可以直接向DirectChatRequester发送消息。
方法
向用户显示系统消息。
将 DirectChatRequester 设置为 TextChannel 。 TextChannel 只会向 DirectChatRequester 发送消息的用户发送消息。
添加一个 TextSource 到 TextChannel 指定用户ID的 Player 。
向服务器发送 TextChatMessage 。
活动
当在客户端上调用 TextChannel:DisplaySystemMessage() 时,或当客户端从服务器收到有效的 TextChannel:SendAsync() 响应时,发生火灾。
回调
当 TextChannel 收到来自外部的消信息时调用。
当 TextChannel 收到来自客户端的消息时,调用每个客户端来确定是否应该将该消息发送给该客户端。