GuildApplicationCommandProvider

@InterfacedService(acceptMultiple = true)
interface GuildApplicationCommandProvider(source)

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 or any annotation that enables your class for dependency injection.

See also

@Command

@JDASlashCommand

@JDAMessageCommand

@JDAUserCommand

@InterfacedService

Functions