Functions

Link copied to clipboard
abstract fun aggregate(declaredName: String, aggregator: KFunction<*>, block: MessageCommandOptionAggregateBuilder.() -> Unit = {})

Declares multiple options aggregated in a single parameter.

Link copied to clipboard
abstract fun customOption(declaredName: String)

Declares a custom option, such as an TextLocalizationContext (with @LocalizationBundle).

Link copied to clipboard
abstract fun generatedOption(declaredName: String, generatedValueSupplier: ApplicationGeneratedValueSupplier)

Declares a generated option, the supplier gets called on each command execution.

Link copied to clipboard
fun <T : OptionAggregateBuilder<T>> OptionAggregateBuilderContainer<T>.inlineClassAggregate(declaredName: String, clazz: KClass<*>, block: T.(valueName: String) -> Unit = {})
Link copied to clipboard

Declares an input option encapsulated in an inline class.

Link copied to clipboard
abstract fun option(declaredName: String)

Declares an input option, supported types and modifiers are in ParameterResolver, additional types can be added by implementing MessageContextParameterResolver.

Link copied to clipboard
abstract fun serviceOption(declaredName: String)

Declares a service option, allowing injection of services, which must be available.