@tf2pickup-org/mumble-client
Version:
A simple bot for managing mumble servers
14 lines (13 loc) • 551 B
TypeScript
import { Channel } from './channel.js';
import { Client } from './client.js';
export declare class ChannelManager {
readonly client: Client;
private readonly _channels;
constructor(client: Client);
get root(): Channel | undefined;
byId(channelId: number): Channel | undefined;
byName(channelName: string): Channel | undefined;
byPath(...channelPath: string[]): Channel | undefined;
find(predicate: (channel: Channel) => boolean): Channel | undefined;
findAll(predicate: (channel: Channel) => boolean): Channel[];
}