All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.commands.application.provider.GuildApplicationCommandProvider.kt Maven / Gradle / Ivy

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.service.annotations.BService
import io.github.freya022.botcommands.api.core.service.annotations.InterfacedService

/**
 * Interface to declare guild application commands.
 *
 * The guild to which commands are being updated can be retrieved in [GuildApplicationCommandManager.guild].
 *
 * **Note:** The function may be called more than once, for example,
 * if the bot needs to update its commands, or if it joins a guild.
 *
 * **Usage**: Register your instance as a service with [@BService][BService].
 *
 * @see Command @Command
 * @see JDASlashCommand @JDASlashCommand
 * @see JDAMessageCommand @JDAMessageCommand
 * @see JDAUserCommand @JDAUserCommand
 *
 * @see InterfacedService @InterfacedService
 */
@InterfacedService(acceptMultiple = true)
interface GuildApplicationCommandProvider {
    fun declareGuildApplicationCommands(manager: GuildApplicationCommandManager)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy