Class: DComm::CLI::Create
- Defined in:
- lib/dcomm/cli/create.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from DComm::CLI::Command
Instance Method Details
#call(app_id:, command_file:) ⇒ Object
18 19 20 21 22 |
# File 'lib/dcomm/cli/create.rb', line 18 def call(app_id:, command_file:) command = YAML.safe_load_file(File.(command_file)) response = discord.create_global_app_cmd(app_id:, command:) renderer.call(response) end |