io.github.freya022.botcommands.api.commands.text.provider.TextCommandProvider.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.
The newest version!
package io.github.freya022.botcommands.api.commands.text.provider
import io.github.freya022.botcommands.api.commands.annotations.Command
import io.github.freya022.botcommands.api.commands.text.annotations.JDATextCommandVariation
import io.github.freya022.botcommands.api.core.service.annotations.BService
import io.github.freya022.botcommands.api.core.service.annotations.InterfacedService
/**
* Interface to declare text commands, ran once at startup.
*
* **Usage**: Register your instance as a service with [@BService][BService].
*
* @see Command @Command
* @see JDATextCommandVariation @JDATextCommandVariation
*
* @see InterfacedService @InterfacedService
*/
@InterfacedService(acceptMultiple = true)
interface TextCommandProvider {
fun declareTextCommands(manager: TextCommandManager)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy