mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.command.descriptor
/
ArgumentAcceptance
Argument
Acceptance
@
ExperimentalCommandDescriptors
sealed
class
ArgumentAcceptance
Inheritors
Direct
WithTypeConversion
WithContextualConversion
ResolutionAmbiguity
Impossible
Members
Members & Extensions
Types
Companion
Link copied to clipboard
object
Companion
Direct
Link copied to clipboard
object
Direct
:
ArgumentAcceptance
Impossible
Link copied to clipboard
object
Impossible
:
ArgumentAcceptance
Resolution
Ambiguity
Link copied to clipboard
data
class
ResolutionAmbiguity
(
val
candidates
:
List
<
TypeVariant
<
*
>
>
)
:
ArgumentAcceptance
With
Contextual
Conversion
Link copied to clipboard
data
class
WithContextualConversion
(
val
parser
:
CommandValueArgumentParser
<
*
>
)
:
ArgumentAcceptance
With
Type
Conversion
Link copied to clipboard
data
class
WithTypeConversion
(
val
typeVariant
:
TypeVariant
<
*
>
)
:
ArgumentAcceptance
Properties
acceptance
Level
Link copied to clipboard
@
ConsoleExperimentalApi
val
acceptanceLevel
:
Int
Higher means more acceptable
is
Acceptable
Link copied to clipboard
@
JvmStatic
val
ArgumentAcceptance
.
isAcceptable
:
Boolean
is
Not
Acceptable
Link copied to clipboard
@
JvmStatic
val
ArgumentAcceptance
.
isNotAcceptable
:
Boolean