class MCProtocol::PromptArgument

Overview

Describes an argument that a prompt can accept.

Included Modules

Defined in:

mcprotocol/prompt_argument.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, description : String | Nil = Nil, required : Bool | Nil = Nil) #

[View source]

Instance Method Detail

def description : String | Nil #

A human-readable description of the argument.


[View source]
def name : String #

The name of the argument.


[View source]
def required : Bool | Nil #

Whether this argument must be provided.


[View source]