ConstCommand name to register for handling here
Function to run when the command is invoked
OptionalcommandDocs: SingleMethodDocumentationDocumentation for the command
OptionalcommandOptions: NetworkMethodHandlerOptionsOptions for the command
Promise that resolves if the command successfully registered and unsubscriber function to run to stop the passed-in function from handling commands
Register a command on the papi to be handled here