struct
ACP::Protocol::AvailableCommand
- ACP::Protocol::AvailableCommand
- Struct
- Value
- Object
Overview
Information about an available slash command.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/updates.crConstructors
- .new(name : String, description : String, input : AvailableCommandInput | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#description : String
Human-readable description of what the command does.
-
#description=(description : String)
Human-readable description of what the command does.
-
#input : AvailableCommandInput | Nil
Optional input specification for the command.
-
#input=(input : AvailableCommandInput | Nil)
Optional input specification for the command.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#name : String
Command name (e.g., "web", "test", "plan").
-
#name=(name : String)
Command name (e.g., "web", "test", "plan").
Constructor Detail
def self.new(name : String, description : String, input : AvailableCommandInput | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#