Vendetta/API/get latest

From Quasar-RCE
Jump to navigationJump to search

Definition

lib.get_latest (id, [min, max]) :: mod_version

Description

Retrieves the latest version of an enabled mod, or the latest within a range of versions that is installed

Arguments

  1. string id: name of the mod to look up
  2. (optional) string min: minimum version to limit the range to
  3. (optional) string max: maximum version to limit the range to

Returns

  1. string mod_version: the latest version of the installed mod, or the latest installed within the provided range

Other notes

  • Added in LME 3.x.x
    • Changed in 3.8.x: can now define a range to consider valid return values
  • Other API functions, when given mod version "0", use this function to handle lookup
  • This function prioritizes the latest active version. If none are active, then retrieves latest installed version.