How can I detect if players are using TeamChat?

I want to change the colour of the chatbubble and test for players who are using teamchat, and also for players who are using whisper.

if message.TextChannel.Name == "Team" then
	BubbleProperty.TextColor3 = Color3.fromRGB(255, 255, 255)
	BubbleProperty.BackgroundColor3 = player.TeamColor.Color 
elseif message.TextChannel.Name == "Whisper" then
	BubbleProperty.TextColor3 = Color3.fromRGB(255, 255, 255)
	BubbleProperty.BackgroundColor3 = Color3.fromRGB(128, 0, 128)
end

this is what i’ve tried, and it doesn’t seem to work

is there also a way i can force whatever message that certain players send to be in TeamChat?

The names of the team text channels are RBXTeam{team.TeamColor.Name} and for the whisper channels RBXWhisper:{id1}_{id2} or RBXWhisper:{id2}_{id1} where id1 is the sender and id2 the receiver of the whisper message.

i’ve managed to figure that out, but i still can’t get around forcing all messages from players that are in a certain team to be in team chat