Class: DiscordRDA::SubcommandGroup
- Inherits:
-
Object
- Object
- DiscordRDA::SubcommandGroup
- Defined in:
- lib/discord_rda/interactions/command_system.rb
Overview
Represents a subcommand group
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#subcommands ⇒ Object
readonly
Returns the value of attribute subcommands.
Instance Method Summary collapse
-
#initialize(name:, description:, subcommands:, parent:) ⇒ SubcommandGroup
constructor
A new instance of SubcommandGroup.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
368 369 370 |
# File 'lib/discord_rda/interactions/command_system.rb', line 368 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
368 369 370 |
# File 'lib/discord_rda/interactions/command_system.rb', line 368 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
368 369 370 |
# File 'lib/discord_rda/interactions/command_system.rb', line 368 def parent @parent end |
#subcommands ⇒ Object (readonly)
Returns the value of attribute subcommands.
368 369 370 |
# File 'lib/discord_rda/interactions/command_system.rb', line 368 def subcommands @subcommands end |