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:

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

ParameterTypeDescription
keyStringThe key of the rune tree to fetch.
optionsFetchOptionsAdditional fetch options.

Return type: Promise < RuneTree >


.fetchAll ()

Fetch all rune trees.

Signature:

fetchAll(options?: FetchOptions): Promise<Collection<string, RuneTree>>;

Parameters:

ParameterTypeDescription
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Collection < String, RuneTree > >


.fetchAllRunes ()

Fetch all runes.

Signature:

fetchAllRunes(options?: FetchOptions): Promise<Rune[]>;

Parameters:

ParameterTypeDescription
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Rune >


.fetchById ()

Find a rune tree by its numerical ID.

Signature:

fetchById(id: number, options?: FetchOptions): Promise<RuneTree | undefined>;

Parameters:

ParameterTypeDescription
idNumberThe numerical ID of the rune tree to look for.
optionsFetchOptionsThe 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:

ParameterTypeDescription
nameStringThe name of the rune tree to look for.
optionsFetchOptionsThe 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:

ParameterTypeDescription
keyStringThe key of the rune.
optionsFetchOptionsAdditional fetch options.

Return type: Promise < Rune >


.fetchRuneById ()

Fetch a rune by its numerical ID.

Signature:

fetchRuneById(id: number, options?: FetchOptions): Promise<Rune | undefined>;

Parameters:

ParameterTypeDescription
idNumberThe numerical ID of the rune to look for.
optionsFetchOptionsThe 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:

ParameterTypeDescription
nameStringThe name of the rune to look for.
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Rune | Undefined >