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:
Parameter | Type | Description |
---|---|---|
client | Client | The 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:
Parameter | Type | Description |
---|---|---|
id | String | The PUUID of the RIOT account. |
options | FetchOptions | The 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:
Parameter | Type | Description |
---|---|---|
name | String | The name of this RIOT account. |
tag | String | The tag of this RIOT account. |
options | FetchOptions | The basic fetching options. |
Return type: Promise < Account >
Table of Contents