๐Ÿ‘‘Items

rolimons.Items

.getItems(<void>)

Gets the entire item data from Rolimons. This does not have a "practical" use.

Example usage

// Get items example
const rolimons = require("rolimons")

rolimons.items.getItems().then(function(data) {
    console.log(data) // Returns all of the items in Rolimons
})

.searchItem(<str> type, <str/int> input)

Fetches about an item from the Rolimons API and returns it THIS FUNCTION USES CACHING!! SEE BELOW ON HOW TO DELETE CACHE OCCASIONALLY!

Example usage

// Searching VIA acryonym
const rolimons = require("rolimons")

rolimons.items.searchItem("name", "SSHF").then(
    function(item) {
        if (!item) return;
        console.log(item.name, "which is also known as", item.acronym, "has a demand of", item.demand)
})

// Output: Super Super Happy Face which is also known as SSHF has a demand of Amazing
Returned Value
Description

name <string>

The item's full name

acronym <string>

The item's full acronym (empty when no acronym)

value <int>

The item's value

default_value <int>

Also the item's value

rap <int>

The item's RAP (Recent Average Price)

demand <string>

The item's demand

trend <string>

The item's trend

projected <boolean>

Is the item projected

hyped <boolean>

Is the item hyped

rare <boolean>

Is the item rare

.clear_cache( <void> )

Clears the stored cache data to update item info.

Example usage

.getUUID(<int> UUID, <int> users>

Gets UUID current owner & it's history.

Example usage

Returned Value
Description

item_name <string>

Item Name

last_owner <string>

Last owner name

serial <string>

Item UUID serial

owned since <string>

Last owner owned this UUID since

created <string>

Item UUID creation date

uuid_discovered <string>

Item UUID discovery date

history <array>

Item UUID history

NOTICE: history[0] IS ALWAYS THE CURRENT OWNER!!!

History data
Description

id <int>

Previous Owner's ID

name <string>

Previous Owner's name

updated_since <string>

Last Updated

updated_date <string>

Updated Date

Last updated