class
MCProtocol::PromptArgument
- MCProtocol::PromptArgument
- Reference
- Object
Overview
Describes an argument that a prompt can accept.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/prompt_argument.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String, description : String | Nil = Nil, required : Bool | Nil = Nil)
Instance Method Summary
-
#description : String | Nil
A human-readable description of the argument.
-
#name : String
The name of the argument.
-
#required : Bool | Nil
Whether this argument must be provided.