Returns the encoded target URL for the action without executing an HTTP request. Useful if the URL string is needed for custom actions outside the scope of the library.
Modifies the Legends of Runeterra card associated with the Action object it is called from.
The card ID to update the calling Action object with.
Executes the action, sending an HTTP request to the Riot API servers and retrieving the associated data from the appropriate endpoint.
Modifies the locale (language) associated with the Action object it is called from.
The regex /^[a-z]{2}_[A-Z]{2}$/
will be run against the provided input to ensure that
a valid locale format is provided.
The locale to update the calling Action object with.
Modifies the Legends of Runeterra lorSet associated with the Action object it is called from.
The Legends of Runeterra set to update the calling Action object with.
Sets multiple values in the Action payload simultaneously.
The payload with which the Action's payload is overwritten
The current Action (with the updated payload state).
Modifies the version (patch) associated with the Action object it is called from. Tests the provided version against the following regex expressions:
/^([0-9]+)\.([0-9]+)\.([0-9]+)$/
/^lolpatch_([0-9]+)\.([0-9]+)$/
If the input fails to match one of the above expressions, an error will be thrown.
The version to update the calling Action object with.
The payload containing the data (endpoint, request type, parameters, etc.) related to the associated Action. The type guards associated with setting certain properties of the payload are checked at runtime and may throw errors when provided invalid values.