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