Class: ESM::Command::Server::Me

Inherits:
ApplicationCommand show all
Defined in:
lib/esm/command/server/me.rb

Defined Under Namespace

Modules: V1

Instance Method Summary collapse

Instance Method Details

#on_executeObject



23
24
25
26
27
28
# File 'lib/esm/command/server/me.rb', line 23

def on_execute
  response = query_exile_database!("me", uid: current_user.steam_uid)
  player_data = response.first&.to_struct

  reply(build_embed(player_data))
end