class

MCProtocol::PromptArgument

Inherits JSON::Serializable < Reference < Object

Describes an argument that a prompt can accept.

Constructors

new(name : String, description : String | Nil = Nil, required : Bool | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

A human-readable description of the argument.

Source
name

The name of the argument.

Source
required

Whether this argument must be provided.

Source