I don't remember where I found the file assets/item_ids.json, (it was somewhere on a reddit page that linked to a paste bin), but it is definitely out of date as they have been adding a lot of new items recently. The price lookup command utilizes this file to search for items on the Grand Exchange.
I did it this way because it happened to be relatively easy. Another way could be to request a query from the API, then search the response for item names and find their ID that way.
Alternatively a new up to date .json file could be used, but for "future-proofness" I'm leaning toward the other option.
I don't remember where I found the file
assets/item_ids.json
, (it was somewhere on a reddit page that linked to a paste bin), but it is definitely out of date as they have been adding a lot of new items recently. The price lookup command utilizes this file to search for items on the Grand Exchange.I did it this way because it happened to be relatively easy. Another way could be to request a query from the API, then search the response for item names and find their ID that way.
Alternatively a new up to date .json file could be used, but for "future-proofness" I'm leaning toward the other option.