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



270
271
272
# File 'lib/copilot/types.rb', line 270

def description
  @description
end

#handlerObject

Returns the value of attribute handler

Returns:

  • (Object)

    the current value of handler



270
271
272
# File 'lib/copilot/types.rb', line 270

def handler
  @handler
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



270
271
272
# File 'lib/copilot/types.rb', line 270

def name
  @name
end