erc-command-name

erc-command-name is a compiled Lisp function in `erc.el'.

(erc-command-name CMD)

For CMD being the function name of a ERC command, something like
erc-cmd-FOO, this returns a string /FOO.