Class: DComm::CLI::List

Inherits:
Command
  • Object
show all
Defined in:
lib/dcomm/cli/list.rb

Instance Attribute Summary

Attributes inherited from Command

#discord, #renderer

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from DComm::CLI::Command

Instance Method Details

#call(app_id:) ⇒ Object



12
13
14
15
# File 'lib/dcomm/cli/list.rb', line 12

def call(app_id:)
  response = discord.list_global_app_cmds(app_id:)
  renderer.call(response)
end