Class: ESM::Command::Community::Whois

Inherits:
ApplicationCommand show all
Defined in:
lib/esm/command/community/whois.rb

Instance Method Summary collapse

Instance Method Details

#on_executeObject



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/esm/command/community/whois.rb', line 31

def on_execute
  check_for_user_access!

  embed =
    ESM::Embed.build do |e|
      add_discord_info(e) if target_user.is_a?(ESM::User)
      add_steam_info(e)
    end

  reply(embed)
end