TextChatService
Show Deprecated
Summary
Properties
Methods
Events
Callbacks
Properties
ChatTranslationEnabled
ChatVersion
CreateDefaultCommands
CreateDefaultTextChannels
Methods
DisplayBubble
()
Parameters
Returns
()
CanUsersChatAsync
Parameters
Returns
CanUsersDirectChatAsync
Parameters
Returns
Code Samples
CanUsersDirectChatAsync
local TextChatService = game:GetService("TextChatService")
local directChatParticipants = TextChatService:CanUsersDirectChatAsync(userId1, { userId2 })
-- Check for eligible participants
if #directChatParticipants > 0 then
local directChannel = Instance.new("TextChannel")
directChannel.Parent = TextChatService
for _, participant in directChatParticipants do
directChannel:AddUserAsync(participant)
end
return directChannel
end
warn("Could not create TextChannel. Not enough eligible users.")
return nil