Module: ESM::Command::Server::Me::V1
- Defined in:
- lib/esm/command/server/me.rb
Instance Method Summary collapse
Instance Method Details
#on_execute ⇒ Object
31 32 33 |
# File 'lib/esm/command/server/me.rb', line 31 def on_execute deliver!(query: "player_info", uid: current_user.steam_uid) end |
#on_response ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/esm/command/server/me.rb', line 35 def on_response # V1 # @response will be an empty array if the user has not joined the server # Converting to nil for compatibility player_data = @response.presence reply((player_data)) end |