Package-level declarations
Types
Link copied to clipboard
Specifies the global category of this top-level command.
Link copied to clipboard
Hides a command and its subcommands from help content and execution, except for bot owners.
Link copied to clipboard
Adapts the help content of this parameter as an ID of an entity (message, user, guild, channel, role...)
Link copied to clipboard
annotation class JDATextCommandVariation(val path: Array<out String>, val order: Int = 0, val description: String = "", val usage: String = "", val example: String = "")
Declares this function as a text command, additional properties can be set with @TextCommandData.
Link copied to clipboard
Marks a text command as being usable in NSFW channels only.
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS ] )
Marks this text command as only usable by the bot owners.
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.ANNOTATION_CLASS ] )
@ConditionalOnProperty(value = ["botcommands.text.enable" ], matchIfMissing = true )
Prevents usage of the annotated service if text commands are not enabled.
Link copied to clipboard
Sets a parameter as a text command option from the Discord message.