SlashCommand

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class SlashCommand(name: String, group: String, target: InteractionTarget)

Properties

group
Link copied to clipboard
val group: String

Sub-command group name.

name
Link copied to clipboard
val name: String

Sub-command name.

target
Link copied to clipboard
val target: InteractionTarget

The InteractionTarget of the SlashCommand (default is InteractionTarget.GUILD)