Class: Discordrb::Commands::CommandAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/commands/parser.rb

Overview

A command that references another command

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, aliased_command) ⇒ CommandAlias


134
135
136
137
# File 'lib/discordrb/commands/parser.rb', line 134

def initialize(name, aliased_command)
  @name = name
  @aliased_command = aliased_command
end

Instance Attribute Details

#aliased_commandCommand (readonly)


132
133
134
# File 'lib/discordrb/commands/parser.rb', line 132

def aliased_command
  @aliased_command
end

#nameSymbol (readonly)


129
130
131
# File 'lib/discordrb/commands/parser.rb', line 129

def name
  @name
end