Class: Club
The entity which we use to construct every club entry.
Hierarchy
Structure
↳
Club
Constructors
constructor
• new Club(data
)
Parameters
Name | Type |
---|---|
data | Omit <IClub , "members" > |
Overrides
Structure.constructor
Defined in
Properties
#endpoint
• Private
#endpoint: string
Inherited from
Structure.#endpoint
Defined in
#url
• Private
#url: string
= 'https://bsproxy.royaleapi.dev/v1'
Inherited from
Structure.#url
Defined in
badgeId
• badgeId: number
Defined in
description
• description: string
Defined in
members
• members: MembersEntity
[]
Defined in
name
• name: string
Defined in
requiredTrophies
• requiredTrophies: number
Defined in
tag
• tag: string
Defined in
trophies
• trophies: number
Defined in
type
• type: "open"
| "closed"
Defined in
Methods
request
▸ request<T
>(endpoint?
, token?
): Promise
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
endpoint | string |
token | string |
Returns
Promise
<T
>
Inherited from
Structure.request