Tmi.js docs: https://github.com/tmijs/docs/tree/gh-pages/_posts/v1.4.2
But for what you’re suggesting though, there’s no such thing as permissions in tmi.js. If you want to have a command that can be used by users to create new commands, then you have to build that yourself, including placing restrictions on what users can do that.