moonlink.js
Version:
Imagine a Music... πβ¨ Welcome to Moonlink.js! We invite you to create your own music bot on Discord using Lavalink, in a simple and easy way! πΆπ€
15 lines (14 loc) β’ 493 B
TypeScript
import { INode } from "../typings/Interfaces";
import { Manager, Node, TSortTypeNode } from "../../index";
export declare class NodeManager {
readonly manager: Manager;
cache: Map<string | number, Node>;
constructor(manager: Manager, nodes: INode[]);
check(node: INode): void;
init(): void;
add(node: INode): void;
remove(identifier: string): void;
get(identifier: string | number): Node;
get best(): Node;
sortByUsage(sortType: TSortTypeNode): Node;
}