MuMemberResource (client.mu_member)¶
Endpoints: • muMember.getByMu
.get_by_mu()¶
Get all members and their activity statistics for a military unit.
Args: mu_id: The military unit ID.
Returns:
A list of :class:~warera.models.MuMember objects.
Signature¶
await client.mu_member.get_by_mu(mu_id: 'str') -> 'list[MuMember]'
Parameters¶
| Name | Type | Default |
|---|---|---|
mu_id |
str |
Required |
Return Models¶
MuMember¶
Membership and activity stats for a user within a military unit.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
mu |
string |
Optional |
user |
string |
Optional |
totalDamagesCount |
integer |
Optional |
monthlyDamagesCount |
integer |
Optional |
weeklyDamagesCount |
integer |
Optional |
totalHelpCount |
integer |
Optional |
monthlyHelpCount |
integer |
Optional |
weeklyHelpCount |
integer |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
.invalidate_cache()¶
Clear the SWR cache for all resources.
Signature¶
await client.mu_member.invalidate_cache() -> 'None'