io.github.freya022.botcommands.api.parameters.AggregatedParameter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.parameters
import io.github.freya022.botcommands.api.core.options.Option
import io.github.freya022.botcommands.internal.utils.throwInternal
/**
* Parameter which has its value computed by an aggregation function, from one or more options.
*/
interface AggregatedParameter : MethodParameter {
/**
* Whether this parameter is computed by an aggregator collecting an undefined amount parameters.
*
* If `true`, this parameter is a [List].
*/
val isVararg: Boolean
/**
* Options consumed by this parameter's aggregator.
*/
val options: List