How to block a "/" command?

Greetings, I was wondering if there is any posibility to block an addon “/” command. Should I want to block the /test command, and kick the user or return a message, do you have any hints on where to start ? Is it even possible?

It is not possible. Some client commands are sending a packet e.g. /played but addon commands do not interact with the server. Please correct me if I’m wrong