Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class OnAutoComplete(val name: String = "", val group: String = "", val optionName: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class OnButton(val buttonId: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class OnModal(val modalId: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class OnSlashCommand(val name: String = "", val group: String = "", val target: InteractionTarget = InteractionTarget.GUILD)
Link copied to clipboard
annotation class OptionName(val 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.

Link copied to clipboard
annotation class Permissions(val user: Array<Permission> = [], val bot: Array<Permission> = [])

Functions

Link copied to clipboard