Class: ESM::Command::Territory::Remove

Inherits:
ApplicationCommand show all
Defined in:
lib/esm/command/territory/remove.rb

Defined Under Namespace

Modules: V1

Instance Method Summary collapse

Instance Method Details

#on_executeObject



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/esm/command/territory/remove.rb', line 30

def on_execute
  check_for_registered_target_user! if target_user.is_a?(ESM::User)

  response = call_sqf_function!(
    "ESMs_command_remove",
    territory_id: arguments.territory_id
  )

  embed = embed_from_message!(response)
  reply(embed)
end