Class: DComm::CLI::Guild::Apply
- Defined in:
- lib/dcomm/cli/guild/apply.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:, guild_id:, commands_file:) ⇒ Object
20 21 22 23 24 |
# File 'lib/dcomm/cli/guild/apply.rb', line 20 def call(app_id:, guild_id:, commands_file:) commands = YAML.safe_load_file(File.(commands_file)) response = discord.apply_guild_app_cmds(app_id:, guild_id:, commands:) renderer.call(response) end |