genshin-db icon indicating copy to clipboard operation
genshin-db copied to clipboard

item with same name

Open Sairei opened this issue 1 year ago • 1 comments

Hi,

I noticed that there are objects with the same name, but which are different, such as "Key Sigil" materials or "Prized Isshin Blade" weapons. How can I do to retrieve information from different objects ?

Sairei avatar Jul 28 '22 14:07 Sairei

hmm I'm not sure how to fix this

theBowja avatar Jul 30 '22 18:07 theBowja

Can now get data with the same name by adding a number. Indexed at 0. Must set matchAliases to true.

Example: genshindb.achievements('Key Sigil 1', { matchAliases: true }) Data will have an extra property dupealias: "Key Sigil 1"

v4.3.1

theBowja avatar Sep 27 '22 22:09 theBowja