Package-level declarations

Types

Link copied to clipboard
data class Argument<T>(val displayName: Key, val description: Key, val converter: Converter<T, *, *, *>)

Data class representing a single argument.

Link copied to clipboard
open class Arguments

Abstract base class for a class containing a set of command arguments.

Link copied to clipboard
sealed class ChoiceOptionWrapper<B : BaseChoiceBuilder<*, *>, T> : OptionWrapper<B>
Link copied to clipboard
abstract class Command(val extension: Extension) : Lockable, KordExKoinComponent

Abstract base class representing the few things that command objects can have in common.

Link copied to clipboard
abstract class CommandContext(val command: Command, val eventObj: Event, val commandName: Key, val cache: MutableStringKeyedMap<Any>) : KordExKoinComponent, TranslatableContext

Light wrapper class representing the context for a command's action.

Link copied to clipboard
open class OptionWrapper<T : OptionsBuilder> constructor(var displayName: Key, var description: Key, val body: suspend T.() -> Unit, val type: KClass<T>)

Functions

Link copied to clipboard
suspend fun wrapIntegerOption(displayName: Key, description: Key, body: suspend IntegerOptionBuilder.() -> Unit): ChoiceOptionWrapper.Integer
Link copied to clipboard
suspend fun wrapNumberOption(displayName: Key, description: Key, body: suspend NumberOptionBuilder.() -> Unit): ChoiceOptionWrapper.Number
Link copied to clipboard
inline fun <T : OptionsBuilder> wrapOption(displayName: Key, description: Key, noinline body: suspend T.() -> Unit): OptionWrapper<T>
Link copied to clipboard
suspend fun wrapStringOption(displayName: Key, description: Key, body: suspend StringChoiceBuilder.() -> Unit): ChoiceOptionWrapper.String