All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.parameters.AggregatedParameter.kt Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.18
Show newest version
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy