Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
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
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