42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/esm/command/territory/restore.rb', line 42
def on_response
embed =
if @response.success
ESM::Embed.build(
:success,
description: I18n.t("commands.restore.success_message", user: current_user.mention, territory_id: arguments.territory_id)
)
else
ESM::Embed.build(
:error,
description: I18n.t(
"commands.restore.failure_message",
user: current_user.mention,
territory_id: arguments.territory_id,
server: target_server.server_id
)
)
end
reply(embed)
end
|