-
Notifications
You must be signed in to change notification settings - Fork 2
Resource InventoryResource
CrucifiedPain edited this page Jun 26, 2026
·
8 revisions
Endpoints: • inventory.fetchCurrentEquipment
Get the currently equipped items for a user.
Args: user_id: The unique identifier of the user.
await client.inventory.get_equipment(user_id: 'str') -> 'list[Equipment]'| Name | Type | Default |
|---|---|---|
user_id |
str |
*Required* |
A single equipped item returned by inventory.fetchCurrentEquipment.
The API returns one object keyed by slot (weapon, helmet, ...);
the resource flattens it into a list of Equipment with slot set.
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
slot |
string \| null |
❌ | |
itemId |
string \| null |
❌ | |
itemCode |
string \| null |
❌ | |
name |
string \| null |
❌ | |
rarity |
string \| null |
❌ | |
stats |
object \| null |
❌ | |
type |
string \| null |
❌ | |
code |
string \| null |
❌ | |
skills |
EquipmentSkills \| null |
❌ | |
state |
number \| null |
❌ | |
maxState |
number \| null |
❌ | |
quantity |
integer \| null |
❌ | |
lastAcquisitionAt |
string \| null |
❌ |
Stat bonuses granted by an equipped item.
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
attack |
number \| null |
❌ | |
armor |
number \| null |
❌ | |
criticalChance |
number \| null |
❌ | |
criticalDamages |
number \| null |
❌ | |
dodge |
number \| null |
❌ | |
precision |
number \| null |
❌ |
Clear the SWR cache for all resources.
await client.inventory.invalidate_cache() -> 'None'- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker