![JAR search and dependency download from the Maven repository](/logo.png)
io.github.freya022.botcommands.api.commands.application.provider.GlobalApplicationCommandProvider.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.commands.application.provider
import io.github.freya022.botcommands.api.commands.annotations.Command
import io.github.freya022.botcommands.api.commands.application.context.annotations.JDAMessageCommand
import io.github.freya022.botcommands.api.commands.application.context.annotations.JDAUserCommand
import io.github.freya022.botcommands.api.commands.application.slash.annotations.JDASlashCommand
import io.github.freya022.botcommands.api.core.config.BServiceConfigBuilder
import io.github.freya022.botcommands.api.core.service.annotations.BService
import io.github.freya022.botcommands.api.core.service.annotations.InterfacedService
/**
* Interface to declare global application commands.
*
* **Note:** The function may be called more than once, for example,
* if the bot needs to update its commands.
*
* **Usage**: Register your instance as a service with [@BService][BService]
* or [any annotation that enables your class for dependency injection][BServiceConfigBuilder.serviceAnnotations].
*
* @see Command @Command
* @see JDASlashCommand @JDASlashCommand
* @see JDAMessageCommand @JDAMessageCommand
* @see JDAUserCommand @JDAUserCommand
*
* @see InterfacedService @InterfacedService
*/
@InterfacedService(acceptMultiple = true)
interface GlobalApplicationCommandProvider {
fun declareGlobalApplicationCommands(manager: GlobalApplicationCommandManager)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy