Engine Class
TextChannel
*This content will be available in your selected language soon.
Summary
Properties
Methods
AddUserAsync(userId: User):Tuple |
DisplaySystemMessage(systemMessage: string,metadata: string):TextChatMessage |
SendAsync(message: string,metadata: string):TextChatMessage |
SetDirectChatRequester(requester: Player):() |
Events
MessageReceived(incomingMessage: TextChatMessage):RBXScriptSignal |
Callbacks
OnIncomingMessage(message: TextChatMessage):Tuple |
ShouldDeliverCallback(message: TextChatMessage,textSource: TextSource):Tuple |
API Reference
Properties
Methods
DisplaySystemMessage
Returns
SendAsync
Returns
SetDirectChatRequester
Parameters
Returns
()
Code Samples
Set Direct Chat Requester
local function createWhisperChannel(fromPlayer, toPlayer)
local whisperChannel = Instance.new("TextChannel")
whisperChannel:SetDirectChatRequester(fromPlayer)
whisperChannel:AddUserAsync(toPlayer.UserId)
-- The TextChannel instance now has two TextSource instances.
return whisperChannel
endEvents
MessageReceived
Parameters
Callbacks
OnIncomingMessage
Parameters
Returns
ShouldDeliverCallback
Parameters
Returns