Vendetta/API/get latest: Difference between revisions
From Quasar-RCE
Jump to navigationJump to search
created get_latest |
(No difference)
|
Revision as of 14:55, 3 March 2025
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
- string id: name of the mod to look up
- (optional) string min: minimum version to limit the range to
- (optional) string max: maximum version to limit the range to
Returns
- 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.