Companion

object Companion

Functions

Link copied to clipboard
fun failure(message: Text): CommandResult.Failure

Creates a CommandResult.Failure with the given error message.

Link copied to clipboard
fun success(result: Int = Command.SINGLE_SUCCESS): CommandResult.Success

Creates a CommandResult.Success with the given result.