Disable ability to send messages

Hello, i was wondering:

I created admin commands, and i want admins for example to use them, but i don’t want it to show in chat as sent message too. Is there any way to disable only if there is exact message i think?

I don’t know if this works, but if you type /e and then the command it should hide it, i dont know if this works with your admin commands, but i’ve tried this a lot of times on admin games and always worked

Use TextChatService for this.

Here is some sample code

game:GetService("TextChatService").OnIncomingMessage = function(Message: TextChatMessage)
    Message.Text = "" -- Deletes the message
end

This code should be in a localscript.