Class: OnyxCord::Events::SubcommandBuilder

Inherits:
Object
  • Object
show all
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

Parameters:

Yield Parameters:



174
175
176
# File 'lib/onyxcord/events/interactions/application_commands.rb', line 174

def subcommand(name, &block)
  @subcommands[name.to_sym] = block
end