io.github.freya022.botcommands.internal.modals.options.ModalHandlerInputOption.kt Maven / Gradle / Ivy
package io.github.freya022.botcommands.internal.modals.options
import io.github.freya022.botcommands.api.core.utils.findAnnotationRecursive
import io.github.freya022.botcommands.api.modals.annotations.ModalInput
import io.github.freya022.botcommands.api.parameters.resolvers.ModalParameterResolver
import io.github.freya022.botcommands.internal.modals.options.builder.ModalHandlerInputOptionBuilderImpl
internal class ModalHandlerInputOption(
override val parent: ModalHandlerParameterImpl,
optionBuilder: ModalHandlerInputOptionBuilderImpl,
val resolver: ModalParameterResolver<*, *>
) : ModalHandlerOption(optionBuilder) {
override val executable get() = parent.executable
val inputName: String = kParameter.findAnnotationRecursive()!!.name
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy