Method: Discordrb::Commands::CommandContainer#remove_command

Defined in:
lib/discordrb/commands/container.rb

#remove_command(name) ⇒ Object

Removes a specific command from this container.

Parameters:

  • name (Symbol)

    The command to remove.



81
82
83
84
# File 'lib/discordrb/commands/container.rb', line 81

def remove_command(name)
  @commands ||= {}
  @commands.delete name
end