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