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:

ParameterTypeDescription
clientClientThe 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:

ParameterTypeDescription
idStringThe summoner ID of the summoner.
optionsFetchOptionsThe 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:

ParameterTypeDescription
playerIdString | AccountThe PUUID of the summoner or associated RIOT account.
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Summoner >


.fetchBySummonerName ()

Fetch a summoner by its summoner name.

Signature:

fetchBySummonerName(name: string, options?: FetchOptions): Promise<Summoner>;

Parameters:

ParameterTypeDescription
nameStringThe summoner name of the summoner to fetch.
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Summoner >