Any way to lock onto Team Chat with the new TextChatService?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to lock onto Team Chat with the new TextChatService, rather than use General Chat.

  2. What solutions have you tried so far? Literally everything that comes to mind. Looked across the developer hub, nothing found.

‘%’ is the team chat command, you could replace the beginning of every message with it.

Hi! What do you mean “lock onto team chat”? As a developer, do you want to force your Players to use team channels only? Or as a user, do you want to write to team chat only?

If the former, you can set the ChatInputBarConfiguration.TargetTextChannel to the respectively team channel, like so:

local TextChatService = game:GetService("TextChatService")

TextChatService.ChatInputBarConfiguration.TargetTextChannel = yourTeamTextChannel

If the latter, you can prepend “%”, “/t” or “/team” at the start of your message.

Thank you, I did mean the former, and I was wondering what that property was for.

1 Like

what is yourTeamTextChannel? How do i get it