Class: Rubycord::Events::SubcommandBuilder
- Inherits:
-
Object
- Object
- Rubycord::Events::SubcommandBuilder
- Defined in:
- lib/rubycord/events/interactions.rb
Overview
Builder for adding subcommands to an ApplicationCommandHandler
Instance Method Summary collapse
Instance Method Details
#subcommand(name) {|| ... } ⇒ Object
314 315 316 |
# File 'lib/rubycord/events/interactions.rb', line 314 def subcommand(name, &block) @subcommands[name.to_sym] = block end |