Class: PlayerClan
Represents a Player's clan.
Constructors
constructor
• new PlayerClan(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIPlayerClan |
Defined in
Properties
name
• name: string
Name of the clan.
Defined in
tag
• tag: string
Tag of the clan.
Defined in
level
• level: null
| number
Level of this clan.
This property is not available for ranked player's clan.
Defined in
badge
• badge: Badge
Badge of this clan.
Defined in
Accessors
shareLink
• get
shareLink(): string
Get clan's formatted link to open clan in-game.
Returns
string
Defined in
Methods
fetch
▸ fetch(options?
): Promise
<Clan
>
Fetch detailed clan info for the player's clan.
Parameters
Name | Type |
---|---|
options? | OverrideOptions |
Returns
Promise
<Clan
>