SummonerManager class
A summoner manager - to fetch and manage all the summoner data.
Signature:
export declare class SummonerManager implements BaseManager<Summoner> Implements: BaseManager<Summoner>
References: BaseManager, Summoner
Constructor
new SummonerManager (client: Client)Constructs a new instance of the SummonerManager class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| client | Client | The client this summoner manager belongs to. |
Properties
client
The client this summoner manager belongs to.
Type: Client
Methods
.fetch ()
Fetch a summoner by its summoner ID.
Signature:
fetch(id: string, options?: FetchOptions): Promise<Summoner>;Parameters:
| Parameter | Type | Description |
|---|---|---|
| id | String | The summoner ID of the summoner. |
| options | FetchOptions | The basic fetching options. |
Return type: Promise < Summoner >
.fetchByPlayerId ()
Fetch a summoner by its unique PUUID.
Signature:
fetchByPlayerId(playerId: string | Account, options?: FetchOptions): Promise<Summoner>;Parameters:
| Parameter | Type | Description |
|---|---|---|
| playerId | String | Account | The PUUID of the summoner or associated RIOT account. |
| options | FetchOptions | The basic fetching options. |
Return type: Promise < Summoner >
.fetchBySummonerName ()
Fetch a summoner by its summoner name.
Signature:
fetchBySummonerName(name: string, options?: FetchOptions): Promise<Summoner>;Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | String | The summoner name of the summoner to fetch. |
| options | FetchOptions | The basic fetching options. |
Return type: Promise < Summoner >
Table of Contents
