api
Toggle table of contents
b96a3bb84e
jvm
Platform filter
jvm
Switch theme
Search in API
api
api
/
host.minestudio.frost.api.shards.command.annotation
Package-level
declarations
Types
Types
Argument
Link copied to clipboard
@
Target
(
allowedTargets
=
[
AnnotationTarget.VALUE_PARAMETER
]
)
annotation class
Argument
(
val
type
:
KClass
<
out
Argument
<
*
>
>
=
ArgumentString::class
)
Add an argument to a command.
Command
Link copied to clipboard
@
Target
(
allowedTargets
=
[
AnnotationTarget.CLASS
]
)
annotation class
Command
(
val
name
:
String
,
val
aliases
:
Array
<
String
>
=
[]
,
val
description
:
String
=
""
,
val
usage
:
String
=
""
,
val
permission
:
String
=
""
)
Mark this class as a command
Subcommand
Link copied to clipboard
@
Target
(
allowedTargets
=
[
AnnotationTarget.FUNCTION
]
)
annotation class
Subcommand
(
val
path
:
String
,
val
description
:
String
=
""
,
val
usage
:
String
=
""
)
Mark this function as a subcommand.