RuneTreeManager class
A rune trees manager - to fetch and manage rune trees data.
Signature:
export declare class RuneTreeManager implements BaseManager<RuneTree>
Implements: BaseManager<RuneTree>
References: BaseManager, RuneTree
Constructor
new RuneTreeManager (client: Client)
Constructs a new instance of the RuneTreeManager
class.
Parameters:
Parameter | Type | Description |
---|---|---|
client | Client | The client this rune tree manager belongs to. |
Properties
client
The client this rune tree manager belongs to.
Type: Client
Methods
.fetch ()
Fetch a rune tree by its key. The key is the same as the rune tree's name, for example - Domination
.
Signature:
fetch(key: string, options?: FetchOptions): Promise<RuneTree>;
Parameters:
Parameter | Type | Description |
---|---|---|
key | String | The key of the rune tree to fetch. |
options | FetchOptions | Additional fetch options. |
Return type: Promise < RuneTree >
.fetchAll ()
Fetch all rune trees.
Signature:
fetchAll(options?: FetchOptions): Promise<Collection<string, RuneTree>>;
Parameters:
Parameter | Type | Description |
---|---|---|
options | FetchOptions | The basic fetching options. |
Return type: Promise < Collection < String, RuneTree > >
.fetchAllRunes ()
Fetch all runes.
Signature:
fetchAllRunes(options?: FetchOptions): Promise<Rune[]>;
Parameters:
Parameter | Type | Description |
---|---|---|
options | FetchOptions | The basic fetching options. |
.fetchById ()
Find a rune tree by its numerical ID.
Signature:
fetchById(id: number, options?: FetchOptions): Promise<RuneTree | undefined>;
Parameters:
Parameter | Type | Description |
---|---|---|
id | Number | The numerical ID of the rune tree to look for. |
options | FetchOptions | The basic fetching options. |
Return type: Promise < RuneTree | Undefined >
.fetchByName ()
Fetch a rune tree by its name. The search is case-insensitive. The special characters are NOT ignored.
Signature:
fetchByName(name: string, options?: FetchOptions): Promise<RuneTree | undefined>;
Parameters:
Parameter | Type | Description |
---|---|---|
name | String | The name of the rune tree to look for. |
options | FetchOptions | The basic fetching options. |
Return type: Promise < RuneTree | Undefined >
.fetchRune ()
Fetch a rune by its key. The key is mostly the same as the rune name, for example - Electrocute
.
Signature:
fetchRune(key: string, options?: FetchOptions): Promise<Rune>;
Parameters:
Parameter | Type | Description |
---|---|---|
key | String | The key of the rune. |
options | FetchOptions | Additional fetch options. |
.fetchRuneById ()
Fetch a rune by its numerical ID.
Signature:
fetchRuneById(id: number, options?: FetchOptions): Promise<Rune | undefined>;
Parameters:
Parameter | Type | Description |
---|---|---|
id | Number | The numerical ID of the rune to look for. |
options | FetchOptions | The basic fetching options. |
Return type: Promise < Rune | Undefined >
.fetchRuneByName ()
Fetch a rune by its name. The search is case-insensitive. The special characters are not ignored.
Signature:
fetchRuneByName(name: string, options?: FetchOptions): Promise<Rune | undefined>;
Parameters:
Parameter | Type | Description |
---|---|---|
name | String | The name of the rune to look for. |
options | FetchOptions | The basic fetching options. |
Return type: Promise < Rune | Undefined >