DeclarationFilter

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

Runs the following filters before declaring the annotated application command.

Only works on guild commands.

Merging

This annotation can be merged if found with other meta-annotations. Keep in mind that a direct annotation overrides all meta-annotations.

See also

Properties

Link copied to clipboard
@get:JvmName(name = "value")
val filters: Array<out KClass<out CommandDeclarationFilter>>