Class: Copilot::CommandDefinition
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CommandDefinition
- Defined in:
- lib/copilot/types.rb
Overview
Definition of a slash command registered with the session. handler is a callable (Proc/lambda) that receives a CommandContext.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
270 271 272 |
# File 'lib/copilot/types.rb', line 270 def description @description end |
#handler ⇒ Object
Returns the value of attribute handler
270 271 272 |
# File 'lib/copilot/types.rb', line 270 def handler @handler end |
#name ⇒ Object
Returns the value of attribute name
270 271 272 |
# File 'lib/copilot/types.rb', line 270 def name @name end |