UNPKG

ts3-ladon

Version:

Ladon is a versatile framework designed for creating powerful TS3 (TeamSpeak 3) query bots. With Ladon, developers can effortlessly implement commands, handle events, and utilize a variety of utility functions to enhance their bot's capabilities. Whether

35 lines (34 loc) 1.15 kB
import { TeamSpeak } from "ts3-nodejs-library"; import { ExtendedConnection } from "./ExtendedConnection"; interface SpawnOptions extends Partial<TeamSpeak.ConnectionParams> { botColor?: string; prefix?: string; } declare class ConnectionManager { private static _instance; private _connections; static get instance(): ConnectionManager; /** * @description Spawns a new connection * @param {Partial<TeamSpeak.ConnectionParams>} options options * @returns {ExtendedConnection | null} connectionId */ spawn(options: SpawnOptions): Promise<ExtendedConnection | null>; /** * @description Destroys a connection * @param {string} connectionId connectionId */ destroy(connectionId: string): void; /** * @description Get a connection * @param {string} connectionId connectionId * @returns {TeamSpeak | undefined} connection */ get(connectionId: string): TeamSpeak | undefined; /** * @description Get all connections * @returns {Map<string, TeamSpeak>} connections */ getAll(): Map<string, TeamSpeak>; } export { ConnectionManager };