Skip to content

Resource BattleLootSummaryResource

GitHub Action Wiki Bot edited this page Jun 26, 2026 · 10 revisions

BattleLootSummaryResource (client.battle_loot_summary)

Endpoints: • battleLootSummary.getByBattleAndUser

.get_by_battle_and_user()

Get the loot summary for a specific user in a specific battle.

Signature

await client.battle_loot_summary.get_by_battle_and_user(battle_id: 'str', user_id: 'str') -> 'BattleLootSummary'

Parameters

Name Type Default
battle_id str Required
user_id str Required

Return Models

BattleLootPoolItem

Field Type Required
_id string Optional
__v integer Optional
item object Required
pool string Required
rank integer Required
round string Optional

BattleLootSummary

Field Type Required
_id string Optional
__v integer Optional
v integer Optional
battle string Required
case1Count integer Required
case2Count integer Required
createdAt string Required
hits integer Required
poolLoot array[BattleLootPoolItem] Required
totalDmg integer Required
totalMoneyFromBounty integer Required
totalMoneyFromContract integer Required
updatedAt string Required
user string Required

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

await client.battle_loot_summary.invalidate_cache() -> 'None'

Clone this wiki locally