Class: DComm::CLI::Guild::List

Inherits:
Command
  • Object
show all
Defined in:
lib/dcomm/cli/guild/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:, guild_id:) ⇒ Object



14
15
16
17
# File 'lib/dcomm/cli/guild/list.rb', line 14

def call(app_id:, guild_id:)
  response = discord.list_guild_app_cmds(app_id:, guild_id:)
  renderer.call(response)
end