
com.freya02.botcommands.internal.CommandOptions.kt Maven / Gradle / Ivy
package com.freya02.botcommands.internal
import com.freya02.botcommands.api.commands.builder.CustomOptionBuilder
import com.freya02.botcommands.api.commands.builder.GeneratedOptionBuilder
import com.freya02.botcommands.api.core.options.builder.OptionAggregateBuilder
import com.freya02.botcommands.api.core.options.builder.OptionBuilder
import com.freya02.botcommands.api.core.service.getService
import com.freya02.botcommands.api.parameters.ICustomResolver
import com.freya02.botcommands.api.parameters.ParameterWrapper
import com.freya02.botcommands.api.parameters.ParameterWrapper.Companion.wrap
import com.freya02.botcommands.internal.core.options.Option
import com.freya02.botcommands.internal.core.options.builder.InternalAggregators.isSpecialAggregator
import com.freya02.botcommands.internal.core.options.builder.InternalAggregators.isVarargAggregator
import com.freya02.botcommands.internal.parameters.CustomMethodOption
import com.freya02.botcommands.internal.parameters.ResolverContainer
import com.freya02.botcommands.internal.utils.ReflectionUtils.nonEventParameters
object CommandOptions {
internal inline fun transform(
context: BContextImpl,
aggregateBuilder: OptionAggregateBuilder<*>,
config: Configuration
): List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy