How to Disable Private chat

Hello

I’m trrying to disable private chat in a game.
I’ve seen it done in games like murder mystery 2, but I don’t know how to do this. If anyone could help, it would be appreciated!

Are you using LegacyChatService or the new TextChatService?