AccountManager class


An account manager - to fetch and manage all the RIOT accounts. Requires API key with access to account-v1 API.

Signature:

export declare class AccountManager implements BaseManager<Account> 

Implements: BaseManager<Account>

References: BaseManager, Account


Constructor

new AccountManager (client: Client)

Constructs a new instance of the AccountManager class.

Parameters:

ParameterTypeDescription
clientClientThe client this account manager belongs to.

Properties

client

The client this account manager belongs to.

Type: Client


Methods

.fetch ()

Fetch a RIOT account by its unique PUUID.

Signature:

fetch(id: string, options?: FetchOptions): Promise<Account>;

Parameters:

ParameterTypeDescription
idStringThe PUUID of the RIOT account.
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Account >


.fetchByNameAndTag ()

Fetch a RIOT account by its name and tag.

Signature:

fetchByNameAndTag(name: string, tag: string, options?: FetchOptions): Promise<Account>;

Parameters:

ParameterTypeDescription
nameStringThe name of this RIOT account.
tagStringThe tag of this RIOT account.
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Account >