Class: ClanMember
Constructors
constructor
• new ClanMember(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIClanMember |
Defined in
Properties
name
• name: string
The member's name.
Defined in
tag
• tag: string
The member's tag.
Defined in
role
• role: "member"
| "coLeader"
| "leader"
| "elder"
The member's role in the clan.
Defined in
expLevel
• expLevel: number
The member's experience level.
Defined in
townHallLevel
• townHallLevel: number
The member's Town Hall level.
Defined in
league
• league: League
The member's current League.
Defined in
builderBaseLeague
• builderBaseLeague: null
| Omit
<APILeague
, "iconUrls"
>
The member's current Builder Base League.
Defined in
trophies
• trophies: number
The member's trophy count.
Defined in
builderBaseTrophies
• builderBaseTrophies: null
| number
The member's builder base trophy count.
Defined in
clanRank
• clanRank: number
The member's rank in the clan.
Defined in
previousClanRank
• previousClanRank: number
The member's rank before the last leader-board change.
Defined in
donations
• donations: number
The member's donation count for this season.
Defined in
received
• received: number
The member's donation received count for this season.
Defined in
playerHouse
• Optional
playerHouse: null
| APIPlayerHouse
The member's player house details.
Defined in
Accessors
isMember
• get
isMember(): boolean
Whether this clan member is in the clan.
Returns
boolean
Defined in
isElder
• get
isElder(): boolean
Whether this clan member is an Elder.
Returns
boolean
Defined in
isCoLeader
• get
isCoLeader(): boolean
Whether this clan member is a Co-Leader.
Returns
boolean
Defined in
isLeader
• get
isLeader(): boolean
Whether this clan member is a Leader.
Returns
boolean
Defined in
Methods
fetch
▸ fetch(options?
): Promise
<Player
>
Fetch detailed clan info for the member's clan.
Parameters
Name | Type |
---|---|
options? | OverrideOptions |
Returns
Promise
<Player
>