Class: DiscordRDA::SubcommandGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/discord_rda/interactions/command_system.rb

Overview

Represents a subcommand group

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description:, subcommands:, parent:) ⇒ SubcommandGroup

Returns a new instance of SubcommandGroup.



370
371
372
373
374
375
# File 'lib/discord_rda/interactions/command_system.rb', line 370

def initialize(name:, description:, subcommands:, parent:)
  @name = name.to_s
  @description = description
  @subcommands = subcommands
  @parent = parent
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



368
369
370
# File 'lib/discord_rda/interactions/command_system.rb', line 368

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



368
369
370
# File 'lib/discord_rda/interactions/command_system.rb', line 368

def name
  @name
end

#parentObject (readonly)

Returns the value of attribute parent.



368
369
370
# File 'lib/discord_rda/interactions/command_system.rb', line 368

def parent
  @parent
end

#subcommandsObject (readonly)

Returns the value of attribute subcommands.



368
369
370
# File 'lib/discord_rda/interactions/command_system.rb', line 368

def subcommands
  @subcommands
end