TextChatService replacement for DefaultChatSystemChatEvents

I’m trying to migrate my game from LegacyChatService to TextChatService, however, we have commands (like !tp) made using a server script that uses this:

game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest").OnServerEvent:Connect(function(p:Player, Command:string)

This doesn’t work for TextChatService, how am I able to replace this to pick up messages on TextChatService?

You can use TextChatCommands to create commands for the TextChatService, and can use Triggered event to bind scripts to it.