Builder

A builder for CommandMeta.

Functions

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun alias(alias: String): CommandMeta.Builder

Adds the given alias to the list of aliases.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun aliases(aliases: Collection<String>): CommandMeta.Builder

Adds the given aliases to the list of aliases.

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull CommandMeta
Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun name(name: String): CommandMeta.Builder

Sets the name of the command to the given name.