TextChannel

显示已弃用

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

代表文字聊天频道。包含 TextSources 作为子级。

要向 TextChannel 发送聊天消息,请从 TextChannel:SendAsync() 拨打 LocalScript 。用户的相应 必须在那个频道中。

使用 ChannelTabsConfiguration 将不同文本通道的消息分开到聊天窗口的不同选项卡中

了解更多信息,请参阅体验内文字聊天

概要

属性

  • 只读
    未复制
    读取并联

    TextChannel 只会向用户发送消息,可以直接向DirectChatRequester发送消息。

方法

活动

回调

属性

DirectChatRequester

只读
未复制
读取并联

方法

DisplaySystemMessage

参数

systemMessage: string
默认值:""
metadata: string
默认值:""

返回

SetDirectChatRequester

()

参数

requester: Player
默认值:""

返回

()

AddUserAsync

暂停

参数

userId: number
默认值:""

返回

暂停

参数

message: string
默认值:""
metadata: string
默认值:""

返回

活动

MessageReceived

参数

incomingMessage: TextChatMessage

回调

OnIncomingMessage

参数


返回

ShouldDeliverCallback

参数

textSource: TextSource

返回