Class: Clan
Represents a Clan.
Constructors
constructor
• new Clan(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIClan |
Defined in
Properties
name
• name: string
Name of the clan.
Defined in
tag
• tag: string
Tag of the clan.
Defined in
type
• type: "open"
| "inviteOnly"
| "closed"
The clan's type for accepting members.
Defined in
description
• description: string
The clan's description.
Defined in
location
• location: null
| Location
The location of this clan.
Defined in
chatLanguage
• chatLanguage: null
| APIChatLanguage
The clan's trophy count.
Defined in
badge
• badge: Badge
The clan's Badge.
Defined in
level
• level: number
The clan's level.
Defined in
points
• points: number
The clan's trophy count.
Defined in
capitalPoints
• capitalPoints: number
The clan's capital points.
Defined in
builderBasePoints
• builderBasePoints: number
The clan's builder base trophy count.
Defined in
requiredTrophies
• requiredTrophies: number
The minimum trophies required to apply to this clan.
Defined in
requiredBuilderBaseTrophies
• requiredBuilderBaseTrophies: null
| number
The minimum builder base trophies required to apply to this clan.
Defined in
requiredTownHallLevel
• requiredTownHallLevel: null
| number
The minimum hall level required to apply to this clan.
Defined in
warFrequency
• Optional
warFrequency: "always"
| "moreThanOncePerWeek"
| "oncePerWeek"
| "lessThanOncePerWeek"
| "never"
| "unknown"
The frequency for when this clan goes to war.
Defined in
warWinStreak
• warWinStreak: number
The clan's current war winning streak.
Defined in
warWins
• warWins: number
The number of wars the clan has won.
Defined in
warTies
• warTies: null
| number
The number of wars the clan has tied.
Defined in
warLosses
• warLosses: null
| number
The number of wars the clan has lost.
Defined in
isWarLogPublic
• isWarLogPublic: boolean
Indicates if the clan has a public war log.
Defined in
warLeague
• warLeague: null
| APIWarLeague
The clan's CWL league.
Defined in
memberCount
• memberCount: number
The number of members in the clan.
Defined in
labels
• labels: APILabel
[]
An array of Label that the clan has.
Defined in
clanCapital
• clanCapital: null
| ClanCapital
The clan's Clan Capital information
Defined in
capitalLeague
• Optional
capitalLeague: APICapitalLeague
The clan's capital league.
Defined in
isFamilyFriendly
• isFamilyFriendly: boolean
Whether the clan is family friendly.
Defined in
members
• members: ClanMember
[]
List of clan members.
- This property returns empty array for getClans method.
Defined in
Accessors
shareLink
• get
shareLink(): string
Get clan's formatted link to open clan in-game.
Returns
string
Defined in
Methods
fetchMembers
▸ fetchMembers(options?
): Promise
<Player
[]>
Get Player info for every Player in the clan.
Parameters
Name | Type |
---|---|
options? | OverrideOptions |
Returns
Promise
<Player
[]>