Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class CommandId(val value: String)

Sets a unique command ID on an annotated application command function.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class DeclarationFilter(val filters: KClass<out CommandDeclarationFilter>)

Runs the following filters before declaring the annotated application command.

Link copied to clipboard
@Condition(type = RequiresApplicationCommandsChecker::class)
@ConditionalOnProperty(value = ["botcommands.application.enable"], matchIfMissing = true)
annotation class RequiresApplicationCommands

Prevents usage of the annotated service if application commands are not enabled.

Link copied to clipboard
annotation class Test(val guildIds: LongArray = [], val append: Boolean = false)

Defines an annotated application command as being test-only.