AutocompleteTransformer

@InterfacedService(acceptMultiple = true)
interface AutocompleteTransformer<E>(source)

Transforms autocomplete results into choices.

Usage: Register your instance as a service with BService or any annotation that enables your class for dependency injection.

Parameters

E

Type of the List's elements

See also

Properties

Link copied to clipboard
abstract val elementType: Class<E>

Functions

Link copied to clipboard
abstract fun apply(e: E): Command.Choice