Skip to main content

Class: ClanMember

Constructors

constructor

new ClanMember(client, data)

Parameters

NameType
clientClient
dataAPIClanMember

Defined in

struct/ClanMember.ts:53

Properties

name

name: string

The member's name.

Defined in

struct/ClanMember.ts:9


tag

tag: string

The member's tag.

Defined in

struct/ClanMember.ts:12


role

role: "member" | "coLeader" | "leader" | "elder"

The member's role in the clan.

Defined in

struct/ClanMember.ts:15


expLevel

expLevel: number

The member's experience level.

Defined in

struct/ClanMember.ts:18


townHallLevel

townHallLevel: number

The member's Town Hall level.

Defined in

struct/ClanMember.ts:21


league

league: League

The member's current League.

Defined in

struct/ClanMember.ts:24


builderBaseLeague

builderBaseLeague: null | Omit<APILeague, "iconUrls">

The member's current Builder Base League.

Defined in

struct/ClanMember.ts:27


trophies

trophies: number

The member's trophy count.

Defined in

struct/ClanMember.ts:30


builderBaseTrophies

builderBaseTrophies: null | number

The member's builder base trophy count.

Defined in

struct/ClanMember.ts:33


clanRank

clanRank: number

The member's rank in the clan.

Defined in

struct/ClanMember.ts:36


previousClanRank

previousClanRank: number

The member's rank before the last leader-board change.

Defined in

struct/ClanMember.ts:39


donations

donations: number

The member's donation count for this season.

Defined in

struct/ClanMember.ts:42


received

received: number

The member's donation received count for this season.

Defined in

struct/ClanMember.ts:45


playerHouse

Optional playerHouse: null | APIPlayerHouse

The member's player house details.

Defined in

struct/ClanMember.ts:48

Accessors

isMember

get isMember(): boolean

Whether this clan member is in the clan.

Returns

boolean

Defined in

struct/ClanMember.ts:74


isElder

get isElder(): boolean

Whether this clan member is an Elder.

Returns

boolean

Defined in

struct/ClanMember.ts:79


isCoLeader

get isCoLeader(): boolean

Whether this clan member is a Co-Leader.

Returns

boolean

Defined in

struct/ClanMember.ts:84


isLeader

get isLeader(): boolean

Whether this clan member is a Leader.

Returns

boolean

Defined in

struct/ClanMember.ts:89

Methods

fetch

fetch(options?): Promise<Player>

Fetch detailed clan info for the member's clan.

Parameters

NameType
options?OverrideOptions

Returns

Promise<Player>

Defined in

struct/ClanMember.ts:94