io.github.freya022.botcommands.api.modals.annotations.ModalData.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.modals.annotations
import io.github.freya022.botcommands.api.modals.ModalBuilder
/**
* Sets this parameter as data coming from [ModalBuilder.bindTo].
*
* The data supplied in the method above must be in the same order as the modal handler parameters,
* and must match the types.
*
* @see ModalHandler @ModalHandler
* @see ModalInput @ModalInput
*/
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
annotation class ModalData