Package tv.blademaker.slash.annotations

Types

AutoComplete
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class AutoComplete(name: String, group: String, optionName: String)
InteractionTarget
Link copied to clipboard
enum InteractionTarget : Enum<InteractionTarget>
OptionName
Link copied to clipboard
annotation class OptionName(value: String)

Define a custom name for a command event option, this means you can use a different variable name to get an option with different name.

Permissions
Link copied to clipboard
annotation class Permissions(user: Array<Permission>, bot: Array<Permission>)
SlashCommand
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class SlashCommand(name: String, group: String, target: InteractionTarget)