Class: Copilot::CommandDefinition

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



461
462
463
# File 'lib/copilot/types.rb', line 461

def description
  @description
end

#handlerObject

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



461
462
463
# File 'lib/copilot/types.rb', line 461

def handler
  @handler
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



461
462
463
# File 'lib/copilot/types.rb', line 461

def name
  @name
end