struct ACP::Protocol::AvailableCommand

Overview

Information about an available slash command.

Included Modules

Defined in:

acp/protocol/updates.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String, input : AvailableCommandInput | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def description : String #

Human-readable description of what the command does.


[View source]
def description=(description : String) #

Human-readable description of what the command does.


[View source]
def input : AvailableCommandInput | Nil #

Optional input specification for the command.


[View source]
def input=(input : AvailableCommandInput | Nil) #

Optional input specification for the command.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def name : String #

Command name (e.g., "web", "test", "plan").


[View source]
def name=(name : String) #

Command name (e.g., "web", "test", "plan").


[View source]