
com.freya02.botcommands.internal.commands.CommandParameter.kt Maven / Gradle / Ivy
package com.freya02.botcommands.internal.commands
import com.freya02.botcommands.api.core.options.builder.OptionAggregateBuilder
import com.freya02.botcommands.internal.BContextImpl
import com.freya02.botcommands.internal.core.reflection.toAggregatorFunction
import com.freya02.botcommands.internal.parameters.IAggregatedParameter
import com.freya02.botcommands.internal.parameters.MethodParameterImpl
abstract class CommandParameter(
context: BContextImpl,
optionAggregateBuilder: OptionAggregateBuilder<*>
) : MethodParameterImpl(optionAggregateBuilder.parameter), IAggregatedParameter {
final override val aggregator = optionAggregateBuilder.aggregator.toAggregatorFunction(context)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy